Skip to content

Commit

Permalink
fs: fix short circuit notification
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-d-ovo authored and Luke Bonham committed May 19, 2017
1 parent 2ddb55b commit 29dd7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/fs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 29dd7ad

Please sign in to comment.