Commit 40dc45b6 authored by Pekka Vuorela's avatar Pekka Vuorela

[nemo-qml-plugin-systemsettings] Don't count free space as used

parent 3d0b0e8f
......@@ -149,7 +149,9 @@ void DiskUsageWorker::submit(QStringList paths, QJSValue *callback)
qWarning() << "statvfs() failed on:" << path;
continue;
}
usage[path] = quint64(float(stv.f_frsize) * float(stv.f_blocks));
quint64 fsSize = float(stv.f_frsize) * float(stv.f_blocks);
quint64 freeSpace = float(stv.f_frsize) * float(stv.f_bfree);
usage[path] = fsSize - freeSpace;
} else {
usage[path] = calculateSize(path);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment