mirror of
https://github.com/rclone/rclone.git
synced 2024-11-24 01:33:23 +08:00
Display the transfer stats in more human readable form - fixes #428
This commit is contained in:
parent
772f99fd74
commit
e2788aa729
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user