X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8dc0df106dc5a1c254a0371254770d7c869ab7fa..301faf5370d045e94c9c344acb0fdac84a2f25a6:/widgets/mem.lua?ds=sidebyside diff --git a/widgets/mem.lua b/widgets/mem.lua index 3a6bdec..aede803 100644 --- a/widgets/mem.lua +++ b/widgets/mem.lua @@ -7,15 +7,15 @@ --]] -local newtimer = require("lain.helpers").newtimer +local newtimer = require("lain.helpers").newtimer -local wibox = require("wibox") +local wibox = require("wibox") -local io = { lines = io.lines } -local math = { floor = math.floor } -local string = { gmatch = string.gmatch } +local io = { lines = io.lines } +local math = { floor = math.floor } +local string = { gmatch = string.gmatch } -local setmetatable = setmetatable +local setmetatable = setmetatable -- Memory usage (ignoring caches) -- lain.widgets.mem @@ -46,7 +46,7 @@ local function worker(args) mem_now.used = mem_now.total - (mem_now.free + mem_now.buf + mem_now.cache) mem_now.swapused = mem_now.swap - mem_now.swapf - mem_now.perc = math.floor(mem_now.used / mem_now.total * 100) + mem_now.perc = math.floor(mem_now.used / mem_now.total * 100) widget = mem.widget settings()