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

@ -23,7 +23,7 @@
return NULL;
}
return bprintf("%d", perc);
return bprintf("%d%%", perc);
}
const char *
@ -131,7 +131,7 @@
struct apm_power_info apm_info;
if (load_apm_power_info(&apm_info)) {
return bprintf("%d", apm_info.battery_life);
return bprintf("%d%%", apm_info.battery_life);
}
return NULL;