aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-11-15 02:00:14 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-11-15 02:00:14 +0100
commit14d69f6478c97a6561d6f8181ee166d9d73f19c3 (patch)
treeb3301d199b7d32687ebbd15fe4f084fd8733d7c6
parentdb82c2aaa2fdc031b0e86b45b9e169f3a95cc480 (diff)
downloadvicious-legacy-14d69f6478c97a6561d6f8181ee166d9d73f19c3.tar.xz
net: minor coding style change
-rw-r--r--net.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/net.lua b/net.lua
index 83e7924..69006e8 100644
--- a/net.lua
+++ b/net.lua
@@ -45,8 +45,9 @@ local function worker(format)
local name = string.match(line, "^[%s]?[%s]?[%s]?[%s]?([%w]+):")
-- Received bytes, first value after the name
local recv = tonumber(string.match(line, ":[%s]*([%d]+)"))
- local send = -- Transmited bytes, 7 fields from end of the line
- tonumber(string.match(line, "([%d]+)%s+%d+%s+%d+%s+%d+%s+%d+%s+%d+%s+%d+%s+%d$"))
+ -- Transmited bytes, 7 fields from end of the line
+ local send = tonumber(string.match(line,
+ "([%d]+)%s+%d+%s+%d+%s+%d+%s+%d+%s+%d+%s+%d+%s+%d$"))
uformat(args, name .. " rx", recv)
uformat(args, name .. " tx", send)