From 74c4f4ebdae8a12fc95840954dde574692234b01 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sat, 19 May 2018 20:33:06 +0200 Subject: Add the percent sign to *_perc functions Units should be added to the corresponding numbers --- components/disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/disk.c') diff --git a/components/disk.c b/components/disk.c index 00deea2..db18d12 100644 --- a/components/disk.c +++ b/components/disk.c @@ -29,7 +29,7 @@ disk_perc(const char *mnt) return NULL; } - return bprintf("%d", (int)(100 * + return bprintf("%d%%", (int)(100 * (1.0f - ((float)fs.f_bavail / (float)fs.f_blocks)))); } -- cgit v1.2.3