diff options
Diffstat (limited to 'analyze.sh')
-rwxr-xr-x | analyze.sh | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3,6 +3,8 @@ sleep=1 int=$(ip addr show | grep "192\.168\.2\." | awk '{ print $NF }') +[ -n "$1" ] && int="$1" + stats1=($(ethtool -S $int | grep -P "rx\d?_(packets|bytes)" | awk '{ print $2 }')) sleep $sleep |