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

accounting: fix incorrect stats with --transfers=1 - fixes #8670

Yu Xin614d02a67345
diff --git a/fs/accounting/stats.go b/fs/accounting/stats.go
index f8a9980d8..a14c59c55 100644
--- a/fs/accounting/stats.go
+++ b/fs/accounting/stats.go
@@ -391,6 +391,7 @@ func (s *StatsInfo) _stopAverageLoop() {
if s.average.started {
s.average.cancel()
s.average.stopped.Wait()
+ s.average.started = false
}
}