diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-24 15:34:56 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-24 15:34:56 +0200 |
commit | a54350782e9bbd81aad3ef58a11826e3cd13134c (patch) | |
tree | c2281044157b39ab3c7f780d500d084e7d3d3d55 /net.lua | |
parent | 080d1e82f535e5a8e6fb3fbb4e1df97f7a21bf42 (diff) | |
download | vicious-legacy-a54350782e9bbd81aad3ef58a11826e3cd13134c.tar.xz |
General cleanup to match with HEAD
Diffstat (limited to 'net.lua')
-rw-r--r-- | net.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -25,7 +25,6 @@ local function worker(format) local f = io.open("/proc/net/dev") local args = {} - -- Format data for line in f:lines() do -- Match wmaster0 as well as rt0 (multiple leading spaces) if line:match("^[%s]?[%s]?[%s]?[%s]?[%w]+:") then @@ -48,7 +47,7 @@ local function worker(format) args["{"..name.." tx_gb}"] = math.floor(send/1024/1024/1024*10)/10 if nets[name] == nil then - -- Default values on our first run + -- Default values on the first run nets[name] = {} args["{"..name.." down}"] = "n/a" args["{"..name.." up}"] = "n/a" |