summaryrefslogtreecommitdiff
path: root/internal/cli/workers/render.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-09-15 10:17:58 +0200
committerGitHub <[email protected]>2022-09-15 10:17:58 +0200
commit28b14c2c390e899c4ac4db9c8b28d0c7d444da3d (patch)
tree561152ea864e577058e03fe71af4fec20b91c43c /internal/cli/workers/render.go
parente044c06b7146e7d62690eeed406fbad55244c935 (diff)
parent89de1ce097306d619636c04359cbe43bcde01205 (diff)
[#1284]: feat: release `v2.11.2`v2.11.2
Diffstat (limited to 'internal/cli/workers/render.go')
-rw-r--r--internal/cli/workers/render.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/cli/workers/render.go b/internal/cli/workers/render.go
index 2d3cc71b..df38ae85 100644
--- a/internal/cli/workers/render.go
+++ b/internal/cli/workers/render.go
@@ -30,9 +30,9 @@ func WorkerTable(writer io.Writer, workers []*process.State) *tablewriter.Table
for i := 0; i < len(workers); i++ {
tw.Append([]string{
- strconv.Itoa(workers[i].Pid),
- renderStatus(workers[i].Status),
- renderJobs(workers[i].NumJobs),
+ strconv.Itoa(int(workers[i].Pid)),
+ renderStatus(workers[i].StatusStr),
+ renderJobs(workers[i].NumExecs),
humanize.Bytes(workers[i].MemoryUsage),
renderCPU(workers[i].CPUPercent),
renderAlive(time.Unix(0, workers[i].Created)),
@@ -55,7 +55,7 @@ func ServiceWorkerTable(writer io.Writer, workers []*process.State) *tablewriter
for i := 0; i < len(workers); i++ {
tw.Append([]string{
- strconv.Itoa(workers[i].Pid),
+ strconv.Itoa(int(workers[i].Pid)),
humanize.Bytes(workers[i].MemoryUsage),
renderCPU(workers[i].CPUPercent),
workers[i].Command,