Tidy stats output - fixes #541

This commit is contained in:
Nick Craig-Wood
2016-07-11 13:04:30 +01:00
parent 56adb52a21
commit a20d80565b
4 changed files with 45 additions and 9 deletions
+2 -2
View File
@@ -124,13 +124,13 @@ func (s *StatsInfo) String() string {
dtRounded := dt - (dt % (time.Second / 10))
buf := &bytes.Buffer{}
fmt.Fprintf(buf, `
Transferred: %10vBytes (%vByte/s)
Transferred: %10s (%s)
Errors: %10d
Checks: %10d
Transferred: %10d
Elapsed time: %10v
`,
SizeSuffix(s.bytes), SizeSuffix(speed),
SizeSuffix(s.bytes).Unit("Bytes"), SizeSuffix(speed).Unit("Bytes/s"),
s.errors,
s.checks,
s.transfers,