summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--battstat/acpi-freebsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/battstat/acpi-freebsd.c b/battstat/acpi-freebsd.c
index 33010a18..a3d4b163 100644
--- a/battstat/acpi-freebsd.c
+++ b/battstat/acpi-freebsd.c
@@ -196,7 +196,7 @@ acpi_freebsd_read(struct apm_info *apminfo, struct acpi_info * acpiinfo)
if (!charging) {
apminfo->ai_batt_time = time;
}
- else if (charging && rate > 0) {
+ else if (rate > 0) {
apminfo->ai_batt_time = (int) ((acpiinfo->max_capacity-remain)/(float)rate);
}
else