tiny formatting fix

I noticed this discrepancy when trying to parse the output of restic.
This commit is contained in:
Andreas Nüßlein 2018-10-17 09:41:11 +02:00 committed by GitHub
parent e4b39ae553
commit 6eedd66c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ func formatBytes(c uint64) string {
case c > 1<<10:
return fmt.Sprintf("%.3f KiB", b/(1<<10))
default:
return fmt.Sprintf("%dB", c)
return fmt.Sprintf("%d B", c)
}
}