Merge pull request #14950 from ottok/master
Multiple fixes to 'docker stats' output
This commit is contained in:
commit
fca8ba94b3
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func CustomSize(format string, size float64, base float64, _map []string) string
|
||||||
}
|
}
|
||||||
|
|
||||||
// HumanSize returns a human-readable approximation of a size
|
// HumanSize returns a human-readable approximation of a size
|
||||||
// using SI standard (eg. "44kB", "17MB").
|
// capped at 4 valid numbers (eg. "2.746 MB", "796 KB").
|
||||||
func HumanSize(size float64) string {
|
func HumanSize(size float64) string {
|
||||||
return CustomSize("%.4g %s", size, 1000.0, decimapAbbrs)
|
return CustomSize("%.4g %s", size, 1000.0, decimapAbbrs)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue