1
mirror of https://github.com/rclone/rclone synced 2024-10-17 03:01:13 +02:00

Display the transfer stats in more human readable form - fixes #428

This commit is contained in:
Nick Craig-Wood 2016-06-03 22:49:50 +01:00
parent 772f99fd74
commit e2788aa729

View File

@ -125,13 +125,13 @@ func (s *StatsInfo) String() string {
dtRounded := dt - (dt % (time.Second / 10)) dtRounded := dt - (dt % (time.Second / 10))
buf := &bytes.Buffer{} buf := &bytes.Buffer{}
fmt.Fprintf(buf, ` fmt.Fprintf(buf, `
Transferred: %10d Bytes (%7.2f kByte/s) Transferred: %10vBytes (%vByte/s)
Errors: %10d Errors: %10d
Checks: %10d Checks: %10d
Transferred: %10d Transferred: %10d
Elapsed time: %10v Elapsed time: %10v
`, `,
s.bytes, speed, SizeSuffix(s.bytes), SizeSuffix(speed),
s.errors, s.errors,
s.checks, s.checks,
s.transfers, s.transfers,