Add the percent sign to *_perc functions

Units should be added to the corresponding numbers
This commit is contained in:
Aaron Marcher
2018-05-19 20:33:06 +02:00
parent 68a3902dc5
commit 74c4f4ebda
7 changed files with 12 additions and 12 deletions

View File

@ -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 *