diff options
author | Klaas Freitag <freitag@owncloud.com> | 2021-12-19 01:01:35 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-01-10 14:27:30 +0300 |
commit | df52729957e7d8d77dbaf32849b83822cc4c261b (patch) | |
tree | 327816b607e2cd9df800a5587448cdeffa569282 /src/gui/folderman.cpp | |
parent | ae011a126a54f5ed49b53c68c89fe53a7730fc39 (diff) |
Fix the startup period at beginning, make it short again.
Fixes #9253
Diffstat (limited to 'src/gui/folderman.cpp')
-rw-r--r-- | src/gui/folderman.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index 62ce4fbd5..c040e4409 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -817,7 +817,7 @@ void FolderMan::startScheduledSyncSoon() return; } - seconds delay; + seconds delay { 2s }; // Startup, if _lastSyncFolder is still empty. seconds sinceLastSync; // Require a pause based on the duration of the last sync run. @@ -829,6 +829,8 @@ void FolderMan::startScheduledSyncSoon() // 1min -> 12s pause // 1h -> 90s pause delay = seconds(static_cast<int64_t>(qSqrt(duration_cast<seconds>(lastFolder->msecLastSyncDuration()).count()) / 20)); + } else { + qDebug() << "Setting initial sync start delay of" << delay.count(); } // Delays beyond one minute seem too big, particularly since there |