mirror of
https://github.com/rclone/rclone
synced 2025-01-17 22:27:30 +01:00
size: include human-readable count
This commit is contained in:
parent
721a9786a7
commit
d24f87c6a9
@ -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
|
||||
})
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user