mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-05 07:07:29 +02:00
set correct directory for disk check
Signed-off-by: Mirko Lindner <mirko@sharism.cc>
This commit is contained in:
parent
daac97496b
commit
a1eb23eec1
@ -1869,8 +1869,7 @@ string GMenu2X::getDiskFree() {
|
|||||||
string df = "";
|
string df = "";
|
||||||
struct statvfs b;
|
struct statvfs b;
|
||||||
|
|
||||||
// int ret = statvfs("/card/gmenu2x", &b);
|
int ret = statvfs("/card/gmenu2x", &b);
|
||||||
int ret = statvfs("/home/vegyraupe/work/qi/NanoNote/Ben/sw/gmenu2x/pandora/gmenu2x", &b);
|
|
||||||
if (ret==0) {
|
if (ret==0) {
|
||||||
/*unsigned long free = b.f_bfree*b.f_frsize/1048576;
|
/*unsigned long free = b.f_bfree*b.f_frsize/1048576;
|
||||||
unsigned long total = b.f_blocks*b.f_frsize/1048576;
|
unsigned long total = b.f_blocks*b.f_frsize/1048576;
|
||||||
|
Loading…
Reference in New Issue
Block a user