bat: fix battery detection

This commit is contained in:
Adrian C. (anrxc) 2010-03-15 02:42:36 +01:00
parent a4bd3075e5
commit 7cbf987a2a
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ local function worker(format, warg)
}
-- Check if the battery is present
if not battery.present == "1\n" then
if battery.present ~= "1\n" then
return {battery_state["Unknown\n"], 0, "N/A"}
end