From d24f87c6a9a611e751946b59d98b0e2108ccc591 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Fri, 2 Apr 2021 20:15:56 +0200 Subject: [PATCH] size: include human-readable count --- cmd/size/size.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/size/size.go b/cmd/size/size.go index 881d4cace..c68038519 100644 --- a/cmd/size/size.go +++ b/cmd/size/size.go @@ -42,10 +42,8 @@ var commandDefinition = &cobra.Command{ if jsonOutput { return json.NewEncoder(os.Stdout).Encode(results) } - - fmt.Printf("Total objects: %d\n", results.Count) - fmt.Printf("Total size: %s (%d bytes)\n", fs.SizeSuffix(results.Bytes).ByteUnit(), results.Bytes) - + fmt.Printf("Total objects: %s (%d)\n", fs.CountSuffix(results.Count), results.Count) + fmt.Printf("Total size: %s (%d Byte)\n", fs.SizeSuffix(results.Bytes).ByteUnit(), results.Bytes) return nil }) },