fs: fix short circuit notification

This commit is contained in:
Oli Desborough 2017-05-16 11:33:25 +00:00 committed by Luke Bonham
parent 2ddb55bc44
commit 29dd7ad6fc

View file

@ -93,7 +93,7 @@ local function factory(args)
widget = fs.widget widget = fs.widget
settings() settings()
if notify == "on" and #fs_now.used > 0 and tonumber(fs_now.used) >= 99 and not helpers.get_map(partition) then if notify == "on" and tonumber(fs_now.used) and tonumber(fs_now.used) >= 99 and not helpers.get_map(partition) then
naughty.notify({ naughty.notify({
preset = naughty.config.presets.critical, preset = naughty.config.presets.critical,
title = "Warning", title = "Warning",