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 | b344327c71dd1ec8b1b386dcc06a00e424c65bed (patch) | |
tree | 01b98fbca2665bffd74a65daf67c658ca21217bb /components/disk.c | |
parent | 763e115afd6eefd41f0259787d188ee0aedef063 (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)))); } |