This commit is contained in:
twinaphex 2015-09-02 12:54:31 +02:00
parent a28dd3944c
commit 97dae69f28

View File

@ -192,7 +192,7 @@ check_proc_acpi_battery(const char * node, bool * have_battery,
pct = (int) ((((float) remaining) / ((float) maximum)) * 100.0f);
if (pct < 0)
pct = 0;
else if (pct > 100)
if (pct > 100)
pct = 100;
}