mirror of
https://github.com/restic/restic.git
synced 2025-04-28 20:10:57 +00:00
tiny formatting fix
I noticed this discrepancy when trying to parse the output of restic.
This commit is contained in:
parent
e4b39ae553
commit
6eedd66c1a
@ -21,7 +21,7 @@ func formatBytes(c uint64) string {
|
|||||||
case c > 1<<10:
|
case c > 1<<10:
|
||||||
return fmt.Sprintf("%.3f KiB", b/(1<<10))
|
return fmt.Sprintf("%.3f KiB", b/(1<<10))
|
||||||
default:
|
default:
|
||||||
return fmt.Sprintf("%dB", c)
|
return fmt.Sprintf("%d B", c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user