Skip to content

Commit 36ac80f

Browse files
committed
fix field name in function bandwidth
1 parent 186a802 commit 36ac80f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/server/linux_json_api.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ bandwidth() {
3939

4040
$CAT /proc/net/dev \
4141
| $AWK 'BEGIN {print "["} NR>2 {print "{ \"interface\": \"" $1 "\"," \
42-
" \"tx\": " $2 "," \
43-
" \"rx\": " $10 " }," } END {print "]"}' \
42+
" \"rx\": " $2 "," \
43+
" \"tx\": " $10 " }," } END {print "]"}' \
4444
| $SED 'N;$s/,\n/\n/;P;D' \
4545
| _parseAndPrint
4646
}

0 commit comments

Comments
 (0)