1
0

disk: Cast fsblkcnt_t to double instead of float

Signed-off-by: drkhsh <me@drkhsh.at>
This commit is contained in:
planet36 2021-03-05 14:28:15 -05:00 committed by drkhsh
parent 0e2ff8dc10
commit 89f8476110

View File

@ -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 *