Display Disk resources on CLI

Fixes https://github.com/hashicorp/nomad/issues/2401
This commit is contained in:
Alex Dadgar
2017-03-06 12:53:24 -08:00
parent e2ee3f4904
commit d3ee039422

View File

@@ -427,7 +427,7 @@ func (c *AllocStatusCommand) outputTaskResources(alloc *api.Allocation, task str
resourcesOutput = append(resourcesOutput, fmt.Sprintf("%v MHz|%v|%v|%v|%v",
cpuUsage,
memUsage,
humanize.IBytes(uint64(*resource.DiskMB*bytesPerMegabyte)),
humanize.IBytes(uint64(*alloc.Resources.DiskMB*bytesPerMegabyte)),
*resource.IOPS,
firstAddr))
for i := 1; i < len(addr); i++ {