From: copycat-killer Date: Wed, 11 Nov 2015 17:52:40 +0000 (+0100) Subject: #150 fix 2 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/da1410677b338d57f4e4082587197b3a38985207 #150 fix 2 --- 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('')