]> johannes.truschnigg.info Git - sqm_lagthrottle/commitdiff
Moar whitespace
authorJohannes Truschnigg <johannes@truschnigg.info>
Sun, 13 Mar 2022 15:10:22 +0000 (16:10 +0100)
committerJohannes Truschnigg <johannes@truschnigg.info>
Sun, 13 Mar 2022 15:10:22 +0000 (16:10 +0100)
lagdetect.sh

index 7729d2938fadbebdeccf9565502d3e2922b85c95..46e3d9c0a4ef0cd2b85e6364ec05e585bb7201fe 100755 (executable)
@@ -17,6 +17,7 @@ TC=UTC
 LC_ALL=C
 export TZ LC_ALL
 
+
 __is_num() {
 case "${1}" in
   '')
@@ -71,24 +72,28 @@ then
   PING_PEERS="$(traceroute -4 -n -m 1 8.8.8.8 | awk '{if("1" == $1){print $2}}') ${PING_PEERS}"
 fi
 
+
 if ! __is_num "${THRESHOLD}"
 then
   printf 'FATAL: Invalid value for THRESHOLD\n'
   exit 1
 fi
 
+
 if ! __is_num "${FUDGE_MS}"
 then
   printf 'FATAL: Invalid value for FUDGE_MS\n'
   exit 1
 fi
 
+
 if ! __is_int "${PING_SLOTS_PER_PEER}"
 then
   printf 'FATAL: Invalid value for PING_SLOTS_PER_PEER\n'
   exit 1
 fi
 
+
 if ! __is_int "${PING_INTERVAL}"
 then
   printf 'FATAL: Invalid value for PING_INTERVAL\n'
@@ -98,6 +103,7 @@ fi
 
 set -u
 
+
 fping --loop --retry=1 --size=1280 --period="${PING_INTERVAL}" --random ${PING_PEERS} 2>/dev/null \
 | awk \
   -v THRESHOLD="${THRESHOLD}" \