Add the percent sign to *_perc functions
Units should be added to the corresponding numbers
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user