diff --git a/util/bytefmt.go b/util/bytefmt.go index e416a75e..65c7619a 100644 --- a/util/bytefmt.go +++ b/util/bytefmt.go @@ -60,7 +60,7 @@ func Bytefmt(bytes uint64) string { return "0B" } - result := strconv.FormatFloat(value, 'f', 1, 64) + result := strconv.FormatFloat(value, 'f', 2, 64) result = strings.TrimSuffix(result, ".0") return result + unit }