diff options
author | planet36 <planet36@users.noreply.github.com> | 2021-03-05 14:28:15 -0500 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2023-01-03 15:01:54 +0000 |
commit | 93436bf3fcc5224a1cca71a8616e10c0a14c8528 (patch) | |
tree | 019e8973a5f067c7d704af55cbe6b09b89f7f27f /components | |
parent | 4396ea58e7e5278f0ea30b9d5504823ecce274d2 (diff) |
disk: Cast fsblkcnt_t to double instead of float
Signed-off-by: drkhsh <me@drkhsh.at>
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 * |