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

fs: Don't stop calculating average transfer speed until the operation is complete

Jacob Handsea4aa696a521
diff --git a/fs/accounting/stats.go b/fs/accounting/stats.go
index 2d7376ab6..0faa74180 100644
--- a/fs/accounting/stats.go
+++ b/fs/accounting/stats.go
@@ -777,7 +777,7 @@ func (s *StatsInfo) DoneTransferring(remote string, ok bool) {
s.transfers++
s.mu.Unlock()
}
- if s.transferring.empty() {
+ if s.transferring.empty() && s.checking.empty() {
time.AfterFunc(averageStopAfter, s.stopAverageLoop)
}
}