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
1 changed files with 1 additions and 1 deletions

View File

@ -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",