X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/229d2545dd399b52c6128a823657c6266fbbe8a9..91569eb5b4ffb200f3f68baaabcd42af32d13674:/widgets/mem.lua?ds=sidebyside 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