With two batteries, one might charge/discharge while the other is charged.

SVN revision: 13490
This commit is contained in:
sebastid 2005-02-24 10:22:43 +00:00 committed by sebastid
parent ee7d847876
commit c615012a29
1 changed files with 1 additions and 0 deletions

View File

@ -845,6 +845,7 @@ _battery_linux_acpi_check(Battery *ef)
if (!strcmp(present, "yes")) battery++;
if (!strcmp(charging_state, "discharging")) discharging++;
if (!strcmp(charging_state, "charging")) charging++;
if (!strcmp(charging_state, "charged")) rate_unknown = 0;
bat_drain += rate;
bat_level += level;
}