From 9dd6396aa2700697d2ff952079903fd230a1a0db Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 21 Nov 2009 18:54:34 +0000 Subject: [PATCH] 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 --- rbutil/rbutilqt/base/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;