From f5c6d4bd4454f23faf9543e2b63043262b9a5115 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Wed, 20 Jul 2016 17:48:52 +0900 Subject: [PATCH] [tiny] Output MHz to CPU resouces in alloc-status --- command/alloc_status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/alloc_status.go b/command/alloc_status.go index 9b88c30b4..45cf8b8eb 100644 --- a/command/alloc_status.go +++ b/command/alloc_status.go @@ -296,7 +296,7 @@ func (c *AllocStatusCommand) outputTaskResources(alloc *api.Allocation, task str memUsage = fmt.Sprintf("%v/%v", humanize.IBytes(ms.RSS), memUsage) } } - resourcesOutput = append(resourcesOutput, fmt.Sprintf("%v|%v|%v|%v|%v", + resourcesOutput = append(resourcesOutput, fmt.Sprintf("%v MHz|%v|%v|%v|%v", cpuUsage, memUsage, humanize.IBytes(uint64(resource.DiskMB*bytesPerMegabyte)),