diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-14 17:25:23 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-09-14 17:25:23 +0200 |
commit | 2a5126f4f0c0a3e073becb98f49499363072643d (patch) | |
tree | cd9e79c76420d01c94544ce039a6a73eb667e4e5 /net.lua | |
parent | 4f3599db00b3a55a0ff6e52530bdad282e97f8f3 (diff) | |
download | vicious-legacy-2a5126f4f0c0a3e073becb98f49499363072643d.tar.xz |
General cleanup
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" |