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
This commit is contained in:
Dominik Riebeling 2009-11-21 18:54:34 +00:00
parent 17c200f16f
commit 9dd6396aa2

View file

@ -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;