From: Oli Desborough Date: Tue, 16 May 2017 11:33:25 +0000 (+0000) Subject: fs: fix short circuit notification X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/29dd7ad6fc130627d1f3ef1456e87f7992d6769b?ds=inline fs: fix short circuit notification --- diff --git a/widget/fs.lua b/widget/fs.lua index 473bd33..480c2c8 100644 --- a/widget/fs.lua +++ b/widget/fs.lua @@ -93,7 +93,7 @@ local function factory(args) widget = fs.widget 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({ preset = naughty.config.presets.critical, title = "Warning",