From: Christian Kamm Date: Fri, 22 Sep 2017 09:06:29 +0000 (+0200) Subject: SyncEngine: Adjust free space messaging X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~701^2~59 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=351e65309cb160b5000cbbcb3474222cf35675c9;p=nextcloud-desktop.git SyncEngine: Adjust free space messaging Before, the way the info message was phrased implied a failure. And since the large numbers can be hard to compare that can be confusing. --- diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp index 22a8068b0..48d439b76 100644 --- a/src/libsync/syncengine.cpp +++ b/src/libsync/syncengine.cpp @@ -762,9 +762,9 @@ void SyncEngine::startSync() const qint64 minFree = criticalFreeSpaceLimit(); const qint64 freeBytes = Utility::freeDiskSpace(_localPath); if (freeBytes >= 0) { - qCInfo(lcEngine) << "There are" << freeBytes << "bytes available at" << _localPath - << "and at least" << minFree << "are required"; if (freeBytes < minFree) { + qCWarning(lcEngine()) << "Too little space available at" << _localPath << ". Have" + << freeBytes << "bytes and require at least" << minFree << "bytes"; _anotherSyncNeeded = DelayedFollowUp; csyncError(tr("Only %1 are available, need at least %2 to start", "Placeholders are postfixed with file sizes using Utility::octetsToString()") @@ -773,6 +773,8 @@ void SyncEngine::startSync() Utility::octetsToString(minFree))); finalize(false); return; + } else { + qCInfo(lcEngine) << "There are" << freeBytes << "bytes available at" << _localPath; } } else { qCWarning(lcEngine) << "Could not determine free space available at" << _localPath;