#199 syntactic change

This commit is contained in:
copycat-killer 2016-06-01 13:37:20 +02:00
parent 1635e0a0ca
commit 2d8e93f189
1 changed files with 1 additions and 2 deletions

View File

@ -110,8 +110,7 @@ local function worker(args)
bat_now.ac_status = first_line(string.format("/sys/class/power_supply/%s/online", ac)) or "N/A"
-- update {perc,time,watt} iff rate > 0 and battery not full
if (sum_rate_current > 0 or sum_rate_power > 0)
and bat_now.status ~= "N/A" and bat_now.status ~= "Full"
if (sum_rate_current > 0 or sum_rate_power > 0) and not (bat_now.status == "Full")
then
local rate_time = 0