mirror of https://github.com/lcpz/lain.git
counterfix on pull #6
This commit is contained in:
parent
2fd9382035
commit
efca46a9f4
|
@ -74,7 +74,7 @@ local function worker(args)
|
||||||
bat_now.watt = string.format("%.2fW", (rate * ratev) / 1e12)
|
bat_now.watt = string.format("%.2fW", (rate * ratev) / 1e12)
|
||||||
|
|
||||||
-- notifications for low and critical states
|
-- notifications for low and critical states
|
||||||
if bat_new.status == "Discharging"
|
if bat_now.status == "Discharging"
|
||||||
then
|
then
|
||||||
if bat_now.perc <= 5
|
if bat_now.perc <= 5
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue