]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Increase initial bandwidth estimates #4428 #5390
authorChristian Kamm <mail@ckamm.de>
Tue, 20 Dec 2016 12:23:58 +0000 (13:23 +0100)
committerckamm <mail@ckamm.de>
Wed, 21 Dec 2016 07:53:47 +0000 (08:53 +0100)
To 2 MB/s and 10 files/s.

src/libsync/progressdispatcher.cpp

index 36b0822012fcc2314a55dd4c6ba307a443a3bccc..a2cbb688a1fda7acb52a68dd04cb5065876e8a52 100644 (file)
@@ -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();
 }