Even more SysInfo fixes

This commit is contained in:
Berke Viktor
2012-10-21 14:24:01 +02:00
parent 1e7d7101c6
commit 8404ebf1d4
4 changed files with 138 additions and 36 deletions

View File

@@ -54,7 +54,7 @@ char *pretty_freespace(const char *desc, unsigned long long *free_k, unsigned lo
free_space = free_space / 1024;
total_space = total_space / 1024;
}
if (sysinfo_get_percentages () != 0)
if (sysinfo_get_percent () != 0)
snprintf(result, bsize, "%s: %.1f%s, %.1f%% free",
desc, total_space, bytesize,
percentage(free_k, total_k));