mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
batt
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@553 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
4f5d0da56f
commit
cbec63ada1
@ -1182,11 +1182,7 @@ void get_battery_stuff(char *buf, unsigned int n, const char *bat)
|
||||
/* charged */
|
||||
/* thanks to Lukas Zapletal <lzap@seznam.cz> */
|
||||
else if (strcmp(charging_state, "charged") == 0) {
|
||||
if (acpi_last_full != 0 && remaining_capacity != acpi_last_full) {
|
||||
sprintf(last_battery_str, "charged 100%");
|
||||
} else {
|
||||
strcpy(last_battery_str, "charged");
|
||||
}
|
||||
}
|
||||
/* unknown, probably full / AC */
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user