diff options
author | Arvydas Sidorenko <asido4@gmail.com> | 2012-06-15 18:07:05 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2012-06-18 01:26:31 +0200 |
commit | 41cc2c0e27e6a0860d21754ed9d13f6cd61254ac (patch) | |
tree | 20ed8fe7b878caec0c9e033168fe79561f31db57 /widgets/dio.lua | |
parent | b6b52900930ddb2a5b958a6d314766b455358164 (diff) | |
download | vicious-legacy-41cc2c0e27e6a0860d21754ed9d13f6cd61254ac.tar.xz |
Ported vicious.widgets module to lua 5.2
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Diffstat (limited to 'widgets/dio.lua')
-rw-r--r-- | widgets/dio.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/dio.lua b/widgets/dio.lua index 145ae41..6d13c54 100644 --- a/widgets/dio.lua +++ b/widgets/dio.lua @@ -17,7 +17,8 @@ local os = { -- Disk I/O: provides I/O statistics for requested storage devices -module("vicious.widgets.dio") +-- vicious.widgets.dio +local dio = {} -- Initialize function tables @@ -69,4 +70,4 @@ local function worker(format) end -- }}} -setmetatable(_M, { __call = function(_, ...) return worker(...) end }) +return setmetatable(dio, { __call = function(_, ...) return worker(...) end }) |