Skip to content

Commit

Permalink
move display across all to MB
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Nov 6, 2022
1 parent c0dce5c commit 2231d98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inspector/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ func NewDF(driver *driver.Driver, _ ...string) (Inspector, error) {
// always reported in posix standard of 1K-blocks
Command: `df -a -k`,
RawByteSize: `KB`,
DisplayByteSize: `GB`,
DisplayByteSize: `MB`,
}
} else {
df = &DFWin{
// Using format to account for weird spacing
// issues that arise on windows
Command: `wmic logicaldisk list brief /format:csv`,
RawByteSize: `B`,
DisplayByteSize: `GB`,
DisplayByteSize: `MB`,
}
}
df.SetDriver(driver)
Expand Down
3 changes: 2 additions & 1 deletion inspector/docker_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ func NewDockerStats(driver *driver.Driver, _ ...string) (Inspector, error) {
return nil, errors.New("Cannot use LoadAvgDarwin on drivers outside (linux, darwin, windows)")
}
dockerstats = &DockerStats{
Command: `docker stats --no-stream`,
Command: `docker stats --no-stream`,
DisplayByteSize: `MB`,
}
dockerstats.SetDriver(driver)
return dockerstats, nil
Expand Down

0 comments on commit 2231d98

Please sign in to comment.