summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-25 14:50:21 +0300
committerValery Piashchynski <[email protected]>2021-01-25 14:50:21 +0300
commitbb9e34db0f96295c5c2104262f43a3ab0edbc060 (patch)
treea9b0b99a36b796fdeaac130c9330de10aa4d5c0e /tools
parent709f7223fca5e60793ad9b3192f92a554854d6ee (diff)
Add new Supervisor test in the http plugin
Uniform supervisor config keys to use same notation as pool (10s, 10h not just 10)
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 {