From 12036863c5c614e7f196f8dbaec42bdd848fc24c Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 13 Jan 2022 09:31:46 +0100 Subject: [PATCH] Use qint64 instead of quint64 for bytesAvailable Amends 79ce29b5a130dec8cfe3c6b9c0347e1ef1170cae Change-Id: I922358f793fc40858495ecf5d3e62e75b1f44717 Reviewed-by: Eike Ziller Reviewed-by: Reviewed-by: Christian Kandeler --- .../remotelinuxcheckforfreediskspaceservice.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/remotelinux/remotelinuxcheckforfreediskspaceservice.cpp b/src/plugins/remotelinux/remotelinuxcheckforfreediskspaceservice.cpp index 9cb6340d868..bb2cdf86adc 100644 --- a/src/plugins/remotelinux/remotelinuxcheckforfreediskspaceservice.cpp +++ b/src/plugins/remotelinux/remotelinuxcheckforfreediskspaceservice.cpp @@ -66,16 +66,16 @@ void RemoteLinuxCheckForFreeDiskSpaceService::deployAndFinish() auto cleanup = qScopeGuard([this] { setFinished(); }); const Utils::FilePath path = deviceConfiguration()->mapToGlobalPath(Utils::FilePath::fromString(d->pathToCheck)); - const quint64 freeSpace = path.bytesAvailable(); + const qint64 freeSpace = path.bytesAvailable(); if (freeSpace < 0) { emit errorMessage(tr("Can't get the info about the free disk space for \"%1\"") .arg(path.toUserOutput())); return; } - const quint64 mb = 1024 * 1024; - const quint64 freeSpaceMB = freeSpace / mb; - const quint64 requiredSpaceMB = d->requiredSpaceInBytes / mb; + const qint64 mb = 1024 * 1024; + const qint64 freeSpaceMB = freeSpace / mb; + const qint64 requiredSpaceMB = d->requiredSpaceInBytes / mb; if (freeSpaceMB < requiredSpaceMB) { emit errorMessage(tr("The remote file system has only %n megabytes of free space, "