mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Display Disk resources on CLI
Fixes https://github.com/hashicorp/nomad/issues/2401
This commit is contained in:
@@ -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++ {
|
||||
|
||||
Reference in New Issue
Block a user