|
@@ -212,7 +212,7 @@ get_diskusage() |
|
|
{ |
|
|
{ |
|
|
int perc = 0; |
|
|
int perc = 0; |
|
|
struct statvfs fs; |
|
|
struct statvfs fs; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* try to open mountpoint */ |
|
|
/* try to open mountpoint */ |
|
|
if (statvfs(mountpath, &fs) < 0) { |
|
|
if (statvfs(mountpath, &fs) < 0) { |
|
|
fprintf(stderr, "Could not get filesystem info.\n"); |
|
|
fprintf(stderr, "Could not get filesystem info.\n"); |
|
|