end
local function sec_to_min(sec)
- m, s = math.modf((sec or 0.0) / 60)
+ local m, s = math.modf((sec or 0.0) / 60)
return string.format('%d:%02d', m, math.floor(s * 60))
end
self._status = status
local table = self:get_info()
if not self._notification then return end
+ if not table then return end
naughty.replace_text(self._notification, table.title, table.text)
end)
end