Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

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

Nick Craig-Woode2788aa729ea
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,