#32 fix attempt 2

This commit is contained in:
luke bonham 2014-03-15 11:13:26 +01:00
parent 15df52747e
commit 5c9ddf31ae
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ local function worker(args)
-- notifications for low and critical states
if bat_now.status == "Discharging" and notify == "on" and bat_now.perc ~= nil
then
local nperc = tonumber(bat_now.perc)
local nperc = tonumber(bat_now.perc) or 100
if nperc <= 5
then
bat.id = naughty.notify({

2
wiki

@ -1 +1 @@
Subproject commit 434d32a7dac5770ed7ddd1581967df7d7aeb76be
Subproject commit b35f6931d9685d53e10a051c1d558151331b041f