mirror of https://github.com/lcpz/lain.git
parent
33c0e0c236
commit
af125b324e
|
@ -136,7 +136,7 @@ local function factory(args)
|
||||||
-- "Full", "Unknown" or "Charging". When the laptop is not plugged in,
|
-- "Full", "Unknown" or "Charging". When the laptop is not plugged in,
|
||||||
-- one or more of the batteries may be full, but only one battery
|
-- one or more of the batteries may be full, but only one battery
|
||||||
-- discharging suffices to set global status to "Discharging".
|
-- discharging suffices to set global status to "Discharging".
|
||||||
bat_now.status = bat_now.n_status[1]
|
bat_now.status = bat_now.n_status[1] or "N/A"
|
||||||
for _,status in ipairs(bat_now.n_status) do
|
for _,status in ipairs(bat_now.n_status) do
|
||||||
if status == "Discharging" or status == "Charging" then
|
if status == "Discharging" or status == "Charging" then
|
||||||
bat_now.status = status
|
bat_now.status = status
|
||||||
|
|
Loading…
Reference in New Issue