[tiny] Output MHz to CPU resouces in alloc-status

This commit is contained in:
Kenjiro Nakayama 2016-07-20 17:48:52 +09:00
parent 3cd8d9d84e
commit f5c6d4bd44

View file

@ -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)),