size: include human-readable count

This commit is contained in:
albertony 2021-04-02 20:15:56 +02:00
parent 721a9786a7
commit d24f87c6a9

View file

@ -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
})
},