summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/process.go2
-rw-r--r--tools/worker_table.go5
2 files changed, 4 insertions, 3 deletions
diff --git a/tools/process.go b/tools/process.go
index a01f2b24..a6eb1139 100644
--- a/tools/process.go
+++ b/tools/process.go
@@ -15,7 +15,7 @@ type ProcessState struct {
Status string `json:"status"`
// Number of worker executions.
- NumJobs int64 `json:"numExecs"`
+ NumJobs uint64 `json:"numExecs"`
// Created is unix nano timestamp of worker creation time.
Created int64 `json:"created"`
diff --git a/tools/worker_table.go b/tools/worker_table.go
index 4aeb6ae7..20b8084f 100644
--- a/tools/worker_table.go
+++ b/tools/worker_table.go
@@ -52,8 +52,9 @@ func renderStatus(status string) string {
return status
}
-func renderJobs(number int64) string {
- return humanize.Comma(number)
+func renderJobs(number uint64) string {
+ // TODO overflow
+ return humanize.Comma(int64(number))
}
func renderAlive(t time.Time) string {