Fix limited iftop output and failure to stop iftop (#6723)
* Fix limited iftop output and failure to stop iftop * Shellcheck * Ignore shellcheck
This commit is contained in:
@ -12,5 +12,5 @@ sudo=
|
||||
if sudo true; then
|
||||
sudo="sudo -n"
|
||||
fi
|
||||
|
||||
$sudo iftop -i "$(ifconfig | grep mtu | grep -iv loopback | grep -i running | awk 'BEGIN { FS = ":" } ; {print $1}')" -nNbBP -t
|
||||
# shellcheck disable=SC2086
|
||||
exec $sudo iftop -i "$(ifconfig | grep mtu | grep -iv loopback | grep -i running | awk 'BEGIN { FS = ":" } ; {print $1}')" -nNbBP -t -L 1000
|
||||
|
Reference in New Issue
Block a user