Skip to content

Commit

Permalink
Update parsers.json
Browse files Browse the repository at this point in the history
Made wifi interface more generic.
  • Loading branch information
Grothesk242 authored Jun 2, 2024
1 parent 5726fad commit b73d92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/parsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@
},
"wlan": {
"wifi_received": {
"command": "cat /sys/class/net/wlan0/statistics/rx_bytes",
"command": "cat /sys/class/net/wl*/statistics/rx_bytes",
"regexp": "(.*)",
"post": "$1*-1"
},
"wifi_send": {
"command": "cat /sys/class/net/wlan0/statistics/tx_bytes",
"command": "cat /sys/class/net/wl*/statistics/tx_bytes",
"regexp": "(.*)",
"post": ""
}
Expand Down

0 comments on commit b73d92c

Please sign in to comment.