forked from TrueCloudLab/rclone
size: include human-readable count
This commit is contained in:
parent
721a9786a7
commit
d24f87c6a9
1 changed files with 2 additions and 4 deletions
|
@ -42,10 +42,8 @@ var commandDefinition = &cobra.Command{
|
||||||
if jsonOutput {
|
if jsonOutput {
|
||||||
return json.NewEncoder(os.Stdout).Encode(results)
|
return json.NewEncoder(os.Stdout).Encode(results)
|
||||||
}
|
}
|
||||||
|
fmt.Printf("Total objects: %s (%d)\n", fs.CountSuffix(results.Count), results.Count)
|
||||||
fmt.Printf("Total objects: %d\n", results.Count)
|
fmt.Printf("Total size: %s (%d Byte)\n", fs.SizeSuffix(results.Bytes).ByteUnit(), results.Bytes)
|
||||||
fmt.Printf("Total size: %s (%d bytes)\n", fs.SizeSuffix(results.Bytes).ByteUnit(), results.Bytes)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue