Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Add the percent sign to *_perc functions
[slstatus.git]
/
components
/
disk.c
diff --git
a/components/disk.c
b/components/disk.c
index
00deea2
..
db18d12
100644
(file)
--- 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))));
}