X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8f948b52ebd1ce35a20bf43708444a2bc01ad673..31d64906a0ebfbccb2ac76f50be7be6ed73c3a24:/widget/fs.lua diff --git a/widget/fs.lua b/widget/fs.lua index 473bd33..ca6fb4d 100644 --- a/widget/fs.lua +++ b/widget/fs.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - + + Licensed under GNU General Public License v2 + * (c) 2013, Luca CPZ + --]] local helpers = require("lain.helpers") @@ -93,7 +92,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",