mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 23:49:15 +01: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))
|
||||
buf := &bytes.Buffer{}
|
||||
fmt.Fprintf(buf, `
|
||||
Transferred: %10d Bytes (%7.2f kByte/s)
|
||||
Transferred: %10vBytes (%vByte/s)
|
||||
Errors: %10d
|
||||
Checks: %10d
|
||||
Transferred: %10d
|
||||
Elapsed time: %10v
|
||||
`,
|
||||
s.bytes, speed,
|
||||
SizeSuffix(s.bytes), SizeSuffix(speed),
|
||||
s.errors,
|
||||
s.checks,
|
||||
s.transfers,
|
||||
|
Loading…
Reference in New Issue
Block a user