diff options
Diffstat (limited to 'mem.lua')
-rw-r--r-- | mem.lua | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -7,6 +7,7 @@ local type = type local tonumber = tonumber local io = { open = io.open } +local setmetatable = setmetatable local math = { floor = math.floor } local helpers = require("vicious.helpers") -- }}} @@ -74,3 +75,5 @@ function worker(format, padding) swap_usepercent, swap_inuse, swap_total, swap_free} end -- }}} + +setmetatable(_M, { __call = function(_, ...) return worker(...) end }) |