From 39df3f7323c8ed8a7e062cfa65521b9b98c0b293 Mon Sep 17 00:00:00 2001 From: or-shachar Date: Sun, 19 Nov 2023 12:09:05 +0200 Subject: [PATCH] bug --- cmd/go-cacher/cacher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/go-cacher/cacher.go b/cmd/go-cacher/cacher.go index 9e7d3b3..0b6c3e6 100644 --- a/cmd/go-cacher/cacher.go +++ b/cmd/go-cacher/cacher.go @@ -170,7 +170,7 @@ func formatBytes(size float64) string { switch { case size < kb: - return fmt.Sprintf("%d B", size) + return fmt.Sprintf("%.2f B", size) case size < mb: return fmt.Sprintf("%.2f KB", size/float64(kb)) case size < gb: