From e2788aa729ea43dedaf8f535498b2d978615c8a6 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 3 Jun 2016 22:49:50 +0100 Subject: [PATCH] Display the transfer stats in more human readable form - fixes #428 --- fs/accounting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/accounting.go b/fs/accounting.go index da8901310..f52ff1c8f 100644 --- a/fs/accounting.go +++ b/fs/accounting.go @@ -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,