diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/disk.c b/components/disk.c index 0d1c13e..e19a693 100644 --- a/components/disk.c +++ b/components/disk.c @@ -29,7 +29,7 @@ disk_perc(const char *path) } return bprintf("%d", (int)(100 * - (1.0f - ((float)fs.f_bavail / (float)fs.f_blocks)))); + (1 - ((double)fs.f_bavail / (double)fs.f_blocks)))); } const char * |