diff options
author | Aaron Marcher <me@drkhsh.at> | 2018-05-19 20:33:06 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-05-19 20:33:06 +0200 |
commit | 74c4f4ebdae8a12fc95840954dde574692234b01 (patch) | |
tree | 01b98fbca2665bffd74a65daf67c658ca21217bb /components/disk.c | |
parent | 68a3902dc533a66c1377409b34904f730ae4a7ef (diff) |
Add the percent sign to *_perc functions
Units should be added to the corresponding numbers
Diffstat (limited to 'components/disk.c')
-rw-r--r-- | components/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)))); } |