Add the percent sign to *_perc functions
Units should be added to the corresponding numbers
This commit is contained in:
parent
68a3902dc5
commit
74c4f4ebda
7 changed files with 12 additions and 12 deletions
|
@ -76,7 +76,7 @@
|
|||
}
|
||||
sscanf(match, "SwapFree: %ld kB\n", &free);
|
||||
|
||||
return bprintf("%d", 100 * (total - free - cached) / total);
|
||||
return bprintf("%d%%", 100 * (total - free - cached) / total);
|
||||
}
|
||||
|
||||
const char *
|
||||
|
@ -184,7 +184,7 @@
|
|||
|
||||
getstats(&total, &used);
|
||||
|
||||
return bprintf("%d", 100 * used / total);
|
||||
return bprintf("%d%%", 100 * used / total);
|
||||
}
|
||||
|
||||
const char *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue