X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/229d2545dd399b52c6128a823657c6266fbbe8a9..1555e239eb42953d6d16b04f09d4d19083fa5119:/widgets/mem.lua diff --git a/widgets/mem.lua b/widgets/mem.lua index 2b414ef..7b717ef 100644 --- a/widgets/mem.lua +++ b/widgets/mem.lua @@ -25,7 +25,7 @@ local function worker(args) mem.widget = wibox.widget.textbox() - function update() + function mem.update() mem_now = {} for line in lines("/proc/meminfo") do for k, v in gmatch(line, "([%a]+):[%s]+([%d]+).+") do @@ -48,7 +48,7 @@ local function worker(args) settings() end - helpers.newtimer("mem", timeout, update) + helpers.newtimer("mem", timeout, mem.update) return mem end