Skip to content

Commit 24a50eb

Browse files
committed
update
1 parent c1fc392 commit 24a50eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/net.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,9 @@ function net.getifstats()
132132
{
133133
getopt.parse 2 "iface:str:+:$1" "ifa:ifacestat_t:+:$2" "${@:3}"
134134

135-
local stats
136-
137135
net.__check_iface $1 || return $?
138136

139-
stats=$__SYS_NET/$1/statistics
137+
local stats=$__SYS_NET/$1/statistics
140138

141139
$2.tx_packets = "$(< $stats/tx_packets)"
142140
$2.rx_packets = "$(< $stats/rx_packets)"

0 commit comments

Comments
 (0)