mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 13:44:04 +02:00
Use "/card" instead of "/card/gmenu2x" for disk stats
This commit is contained in:
parent
dd0c4eb72a
commit
431e88e021
@ -1904,7 +1904,7 @@ string GMenu2X::getDiskFree() {
|
||||
string df = "";
|
||||
struct statvfs b;
|
||||
|
||||
int ret = statvfs("/card/gmenu2x", &b);
|
||||
int ret = statvfs("/card", &b);
|
||||
if (ret==0) {
|
||||
unsigned long long free = b.f_bfree * b.f_bsize / 1048576;
|
||||
unsigned long long total = b.f_blocks * b.f_frsize / 1048576;
|
||||
|
Loading…
Reference in New Issue
Block a user