From a54350782e9bbd81aad3ef58a11826e3cd13134c Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Thu, 24 Sep 2009 15:34:56 +0200 Subject: General cleanup to match with HEAD --- net.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'net.lua') diff --git a/net.lua b/net.lua index 6ddd25d..068459e 100644 --- a/net.lua +++ b/net.lua @@ -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" -- cgit v1.2.3