#199 syntactic change
This commit is contained in:
parent
1635e0a0ca
commit
2d8e93f189
1 changed files with 1 additions and 2 deletions
|
@ -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"
|
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
|
-- update {perc,time,watt} iff rate > 0 and battery not full
|
||||||
if (sum_rate_current > 0 or sum_rate_power > 0)
|
if (sum_rate_current > 0 or sum_rate_power > 0) and not (bat_now.status == "Full")
|
||||||
and bat_now.status ~= "N/A" and bat_now.status ~= "Full"
|
|
||||||
then
|
then
|
||||||
local rate_time = 0
|
local rate_time = 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue