aboutsummaryrefslogtreecommitdiff
path: root/widgets/net.lua
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/net.lua')
-rw-r--r--widgets/net.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/widgets/net.lua b/widgets/net.lua
index b8a270c..d81d012 100644
--- a/widgets/net.lua
+++ b/widgets/net.lua
@@ -15,7 +15,8 @@ local helpers = require("vicious.helpers")
-- Net: provides state and usage statistics of all network interfaces
-module("vicious.widgets.net")
+-- vicious.widgets.net
+local net = {}
-- Initialize function tables
@@ -76,4 +77,4 @@ local function worker(format)
end
-- }}}
-setmetatable(_M, { __call = function(_, ...) return worker(...) end })
+return setmetatable(net, { __call = function(_, ...) return worker(...) end })