From d771a072d62120ec9c764fd8a7b5fd764eea86a3 Mon Sep 17 00:00:00 2001 From: Marko Saukko Date: Wed, 28 Mar 2018 12:19:31 -0400 Subject: [PATCH] Exclude other filesystems on counts. without -x if you have mounted e.g. sdcard or something to a directory it counts that into the space which is not right. [disk] Do not follow to other filesystems. Contributes to JB#40595 Signed-off-by: Marko Saukko --- src/diskusage_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diskusage_impl.cpp b/src/diskusage_impl.cpp index b61c77c..863f056 100644 --- a/src/diskusage_impl.cpp +++ b/src/diskusage_impl.cpp @@ -68,7 +68,7 @@ quint64 DiskUsageWorker::calculateSize(QString directory, QString *expandedPath, } QProcess du; - du.start("du", QStringList() << "-sb" << directory, QIODevice::ReadOnly); + du.start("du", QStringList() << "-sbx" << directory, QIODevice::ReadOnly); du.waitForFinished(); if (du.exitStatus() != QProcess::NormalExit) { qWarning() << "Could not determine size of:" << directory;