diff options
author | Arvydas Sidorenko <asido4@gmail.com> | 2012-06-15 20:48:17 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2012-06-18 01:27:53 +0200 |
commit | 8e35a983bf24f6f90df4630b2b55409f0ca1d213 (patch) | |
tree | bec2a7d44b7994c299e82c2348740a11ffeb71a6 /contrib/dio.lua | |
parent | 41cc2c0e27e6a0860d21754ed9d13f6cd61254ac (diff) | |
download | vicious-legacy-8e35a983bf24f6f90df4630b2b55409f0ca1d213.tar.xz |
Ported vicious.contrib to lua 5.2
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Diffstat (limited to 'contrib/dio.lua')
-rw-r--r-- | contrib/dio.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/dio.lua b/contrib/dio.lua index 40c4cad..5639bc8 100644 --- a/contrib/dio.lua +++ b/contrib/dio.lua @@ -13,7 +13,8 @@ local helpers = require("vicious.helpers") -- Disk I/O: provides I/O statistics for requested storage devices -module("vicious.contrib.dio") +-- vicious.contrib.dio +local dio = {} -- Initialize function tables @@ -69,4 +70,4 @@ local function worker(format, disk) end -- }}} -setmetatable(_M, { __call = function(_, ...) return worker(...) end }) +return setmetatable(dio, { __call = function(_, ...) return worker(...) end }) |