Merge pull request #1438 from nak3/show-cpu-mhz

[tiny] Output MHz to CPU resouces in alloc-status
This commit is contained in:
Alex Dadgar 2016-07-21 15:59:13 -07:00 committed by GitHub
commit 00721861b0
1 changed files with 1 additions and 1 deletions

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