sbar

sbar - a suckless status bar
git clone git://ssnf.xyz/sbar
Log | Files | Refs

commit 659f66962d7b748bebce703df41de4392ac83197
parent d7c76232648990bed0ed175cdaf0301e7ac21eb7
Author: ssnf <ssnf@ssnf.xyz>
Date:   Mon, 12 Jul 2021 11:30:48 +0000

improved partition blocks calculation

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

diff --git a/linux.c b/linux.c @@ -58,7 +58,7 @@ Partchk() for (i = 0; part[i].path; ++i) { statfs(part[i].path, &stat); - free = (stat.f_bfree * stat.f_bsize) >> 23; + free = (stat.f_bavail * stat.f_bsize) >> 23; if (free != part[i].free) { part[i].free = free; ++title.update;