diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-11-21 18:54:34 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-11-21 18:54:34 +0000 |
commit | 9dd6396aa2700697d2ff952079903fd230a1a0db (patch) | |
tree | c01d3516058ad71f58273226a0edeaaed55c5025 /rbutil/rbutilqt/base | |
parent | 17c200f16fcb2603bc29890bdce5ff257b2a7ed0 (diff) |
Use f_frsize when calculating the free disk space from the block count. Fixes wrong value on implementations with f_bsize != f_frsize.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23685 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base')
-rw-r--r-- | rbutil/rbutilqt/base/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp index 3f5cefabbd..4bdc748553 100644 --- a/rbutil/rbutilqt/base/utils.cpp +++ b/rbutil/rbutilqt/base/utils.cpp @@ -120,7 +120,7 @@ qulonglong filesystemFree(QString path) ret = statvfs(qPrintable(path), &fs); if(ret == 0) - size = (qulonglong)fs.f_bsize * (qulonglong)fs.f_bavail; + size = (qulonglong)fs.f_frsize * (qulonglong)fs.f_bavail; #endif #if defined(Q_OS_WIN32) BOOL ret; |