summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/zipinstaller.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-10-04 11:26:40 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-10-04 11:31:30 +0200
commit74258fca311b2d7e9d834ab8607f2bd326f67807 (patch)
treea5eee6ed712e5876f08b2b70e3a96b0c05758b62 /rbutil/rbutilqt/base/zipinstaller.cpp
parent1aa739e3c3d1ce25cdebe285847c3c493756d5d6 (diff)
downloadrockbox-74258fca31.tar.gz
rockbox-74258fca31.tar.bz2
rockbox-74258fca31.zip
rbutil: Replace sysinfo filesystem cluster size with type.
The cluster size isn't too useful. Show the filesystem type instead, since that makes it easier to identify a device not showing up because of its filesystem type. Change-Id: I8f58ea23ab90808ab0c37978b211a5470ed8bb8e
Diffstat (limited to 'rbutil/rbutilqt/base/zipinstaller.cpp')
-rw-r--r--rbutil/rbutilqt/base/zipinstaller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/zipinstaller.cpp b/rbutil/rbutilqt/base/zipinstaller.cpp
index caf1b52945..6c111a314d 100644
--- a/rbutil/rbutilqt/base/zipinstaller.cpp
+++ b/rbutil/rbutilqt/base/zipinstaller.cpp
@@ -139,7 +139,8 @@ void ZipInstaller::downloadDone(bool error)
// some room for operating (also includes calculation mistakes due to
// cluster sizes on the player).
if((qint64)Utils::filesystemFree(m_mountpoint)
- < (zip.totalUncompressedSize(Utils::filesystemClusterSize(m_mountpoint))
+ < (zip.totalUncompressedSize(
+ Utils::filesystemSize(m_mountpoint, Utils::FilesystemClusterSize))
+ 1000000)) {
emit logItem(tr("Not enough disk space! Aborting."), LOGERROR);
emit logProgress(1, 1);