mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-17 22:58:06 +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 = "";
|
string df = "";
|
||||||
struct statvfs b;
|
struct statvfs b;
|
||||||
|
|
||||||
int ret = statvfs("/card/gmenu2x", &b);
|
int ret = statvfs("/card", &b);
|
||||||
if (ret==0) {
|
if (ret==0) {
|
||||||
unsigned long long free = b.f_bfree * b.f_bsize / 1048576;
|
unsigned long long free = b.f_bfree * b.f_bsize / 1048576;
|
||||||
unsigned long long total = b.f_blocks * b.f_frsize / 1048576;
|
unsigned long long total = b.f_blocks * b.f_frsize / 1048576;
|
||||||
|
Loading…
Reference in New Issue
Block a user