"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
stats: condensed transfer output to fit 80x25 terminals
ishuahb05e472d2e20
diff --git a/fs/accounting.go b/fs/accounting.goindex 65a4b5427..41cb6b74a 100644--- a/fs/accounting.go+++ b/fs/accounting.go@@ -561,7 +561,7 @@ func (acc *Account) ETA() (eta time.Duration, ok bool) {// String produces stats for this filefunc (acc *Account) String() string {a, b := acc.Progress()- bps, cur := acc.Speed()+ _, cur := acc.Speed()eta, etaok := acc.ETA()etas := "-"if etaok {@@ -572,8 +572,8 @@ func (acc *Account) String() string {}}name := []rune(acc.name)- if len(name) > 45 {- where := len(name) - 42+ if len(name) > 40 {+ where := len(name) - 37name = append([]rune{'.', '.', '.'}, name[where:]...)}@@ -581,17 +581,17 @@ func (acc *Account) String() string {cur = cur * 8}- done := fmt.Sprintf("%2s/%s", SizeSuffix(a), SizeSuffix(b))+ percentageDone := 0if b > 0 {- done += fmt.Sprintf(" %2d%% done, ", int(100*float64(a)/float64(b)))- } else {- done += " 0%% done, "+ percentageDone = int(100 * float64(a) / float64(b))}- return fmt.Sprintf("%45s: %s%s / %s, ETA: %s",++ done := fmt.Sprintf("%2d%% /%s", percentageDone, SizeSuffix(b))++ return fmt.Sprintf("%45s: %s, %s/s, %s",string(name),done,- SizeSuffix(bps).Unit(strings.Title(Config.DataRateUnit)+"/s"),- SizeSuffix(cur).Unit(strings.Title(Config.DataRateUnit)+"/s"),+ SizeSuffix(cur),etas,)}