From 030e3a5d4ab4b2f7173cbddf2e6b23e92053c3bb Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 20 Dec 2016 13:23:58 +0100 Subject: [PATCH] Increase initial bandwidth estimates #4428 #5390 To 2 MB/s and 10 files/s. --- src/libsync/progressdispatcher.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libsync/progressdispatcher.cpp b/src/libsync/progressdispatcher.cpp index 36b082201..a2cbb688a 100644 --- a/src/libsync/progressdispatcher.cpp +++ b/src/libsync/progressdispatcher.cpp @@ -145,8 +145,12 @@ void ProgressInfo::reset() _sizeProgress = Progress(); _fileProgress = Progress(); _totalSizeOfCompletedJobs = 0; - _maxBytesPerSecond = 100000.0; - _maxFilesPerSecond = 2.0; + + // Historically, these starting estimates were way lower, but that lead + // to gross overestimation of ETA when a good estimate wasn't available. + _maxBytesPerSecond = 2000000.0; // 2 MB/s + _maxFilesPerSecond = 10.0; + _updateEstimatesTimer.stop(); _lastCompletedItem = SyncFileItem(); }