slstatus

Fork of suckless' slstatus with my personal patches
git clone https://git.instinctive.eu/slstatus.git
Log | Files | Refs | README | LICENSE

commit 89f8476110c7bdfb70528da79be328ba0f6490be
parent 0e2ff8dc1009dccab4d2e17ed53ba65c4e99450e
Author: planet36 <planet36@users.noreply.github.com>
Date:   Fri,  5 Mar 2021 14:28:15 -0500

disk: Cast fsblkcnt_t to double instead of float

Signed-off-by: drkhsh <me@drkhsh.at>

Diffstat:
Mcomponents/disk.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 *