diff options
author | rbuj <[email protected]> | 2020-07-08 21:29:47 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-07-17 09:52:00 +0200 |
commit | b8738dde7048b76f3d2a11e6371a67d5b0383080 (patch) | |
tree | 9f8c7609a9f292407b2f8a10541755dbb1c9667a /battstat/acpi-freebsd.c | |
parent | 9d8bc8107d5417e9c1df7ce4146ed4affd5f232a (diff) | |
download | mate-applets-b8738dde7048b76f3d2a11e6371a67d5b0383080.tar.bz2 mate-applets-b8738dde7048b76f3d2a11e6371a67d5b0383080.tar.xz |
battstat: warning about boolean algebra reported by cppcheck
Diffstat (limited to 'battstat/acpi-freebsd.c')
-rw-r--r-- | battstat/acpi-freebsd.c | 2 |
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 |