We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1fc392 commit 24a50ebCopy full SHA for 24a50eb
1 file changed
src/net.sh
@@ -132,11 +132,9 @@ function net.getifstats()
132
{
133
getopt.parse 2 "iface:str:+:$1" "ifa:ifacestat_t:+:$2" "${@:3}"
134
135
- local stats
136
-
137
net.__check_iface $1 || return $?
138
139
- stats=$__SYS_NET/$1/statistics
+ local stats=$__SYS_NET/$1/statistics
140
141
$2.tx_packets = "$(< $stats/tx_packets)"
142
$2.rx_packets = "$(< $stats/rx_packets)"
0 commit comments