From 29dd7ad6fc130627d1f3ef1456e87f7992d6769b Mon Sep 17 00:00:00 2001 From: Oli Desborough Date: Tue, 16 May 2017 11:33:25 +0000 Subject: [PATCH] fs: fix short circuit notification --- widget/fs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.39.2