X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/d659c34974ee8e2c136bbac2424c5d95b889492d..5e53a6e620172389f941f01ce91a00a18fafe35e:/widgets/net.lua diff --git a/widgets/net.lua b/widgets/net.lua index 702937c..af823a8 100644 --- a/widgets/net.lua +++ b/widgets/net.lua @@ -35,14 +35,13 @@ local function worker(args) end end - local args = args or {} - local timeout = args.timeout or 2 - local units = args.units or 1024 --kb - local notify = args.notify or "on" - local screen = args.screen or 1 + local args = args or {} + local timeout = args.timeout or 2 + local units = args.units or 1024 --kb + local notify = args.notify or "on" + local screen = args.screen or 1 local settings = args.settings or function() end - - iface = args.iface or net.get_device() + local iface = args.iface or net.get_device() net.widget = wibox.widget.textbox('')