mirror of https://github.com/lcpz/lain.git
fs/alsabar: small fixes
This commit is contained in:
parent
0b4193199b
commit
444ffd03c1
|
@ -19,6 +19,7 @@ local string = { format = string.format,
|
||||||
match = string.match,
|
match = string.match,
|
||||||
rep = string.rep }
|
rep = string.rep }
|
||||||
local tonumber = tonumber
|
local tonumber = tonumber
|
||||||
|
local type = type
|
||||||
|
|
||||||
local setmetatable = setmetatable
|
local setmetatable = setmetatable
|
||||||
|
|
||||||
|
@ -101,7 +102,7 @@ local function worker(args)
|
||||||
|
|
||||||
settings()
|
settings()
|
||||||
|
|
||||||
if callback then callback() end
|
if type(callback) == "function" then callback() end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
@ -98,7 +98,7 @@ local function worker(args)
|
||||||
widget = fs.widget
|
widget = fs.widget
|
||||||
settings()
|
settings()
|
||||||
|
|
||||||
if notify == "on" and fs_now.used >= 99 and not helpers.get_map(partition) then
|
if notify == "on" and tonumber(fs_now.used) >= 99 and not helpers.get_map(partition) then
|
||||||
naughty.notify({
|
naughty.notify({
|
||||||
title = "warning",
|
title = "warning",
|
||||||
text = partition .. " is empty!",
|
text = partition .. " is empty!",
|
||||||
|
|
Loading…
Reference in New Issue