mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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:
parent
17c200f16f
commit
9dd6396aa2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue