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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue