net: minor coding style change
This commit is contained in:
parent
db82c2aaa2
commit
14d69f6478
5
net.lua
5
net.lua
|
@ -45,8 +45,9 @@ local function worker(format)
|
||||||
local name = string.match(line, "^[%s]?[%s]?[%s]?[%s]?([%w]+):")
|
local name = string.match(line, "^[%s]?[%s]?[%s]?[%s]?([%w]+):")
|
||||||
-- Received bytes, first value after the name
|
-- Received bytes, first value after the name
|
||||||
local recv = tonumber(string.match(line, ":[%s]*([%d]+)"))
|
local recv = tonumber(string.match(line, ":[%s]*([%d]+)"))
|
||||||
local send = -- Transmited bytes, 7 fields from end of the line
|
-- 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$"))
|
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 .. " rx", recv)
|
||||||
uformat(args, name .. " tx", send)
|
uformat(args, name .. " tx", send)
|
||||||
|
|
Loading…
Reference in New Issue