diff --git a/scripts/network_bandwidth.sh b/scripts/network_bandwidth.sh index 6427bdd..939052a 100755 --- a/scripts/network_bandwidth.sh +++ b/scripts/network_bandwidth.sh @@ -83,6 +83,12 @@ main() { interval_update=0 fi + if ! command -v bc &> /dev/null + then + echo "command bc could not be found!" + exit 1 + fi + while true; do if ((counter == 0)); then counter=60