]> johannes.truschnigg.info Git - sqm_lagthrottle/commitdiff
Rename script suite to sqm_lagthrottle
authorJohannes Truschnigg <johannes@truschnigg.info>
Sun, 20 Mar 2022 10:24:14 +0000 (11:24 +0100)
committerJohannes Truschnigg <johannes@truschnigg.info>
Sun, 20 Mar 2022 10:24:14 +0000 (11:24 +0100)
__sqm_lagthrottle.awk [moved from __lagdetect.awk with 100% similarity]
sqm_lagthrottle.sh [moved from lagdetect.sh with 94% similarity]
sqm_lagthrottle_suggest_config.sh [moved from lagdetect_suggest_config with 96% similarity]

similarity index 100%
rename from __lagdetect.awk
rename to __sqm_lagthrottle.awk
similarity index 94%
rename from lagdetect.sh
rename to sqm_lagthrottle.sh
index 880d35777e01c386ce6337b3a2c5de6056afd19e..3103281462f019840009263e395abbe6e50fd54a 100755 (executable)
@@ -24,8 +24,9 @@
 # CONFIGURATION - adapt these variables to yor needs
 # These will be docmented once this is finished  - promise ;)
 
-# HINT: You may want to use lagdetect_suggest_config from this distribution to
-# get (hopefully) sensible configration values for FUDGE_MS and PING_PEERS.
+# HINT: You may want to use sqm_lagthrottle_suggest_config.sh from this
+# distribution to get (hopefully) sensible configration values for FUDGE_MS and
+# PING_PEERS.
 
 FUDGE_MS=20.0 # "fudge" factor in msec that yor PING_PEERS are expected to fluctuate in latency under normal conditions
 PING_PEERS='1.1.1.1 8.8.8.8' # space-separated list of peer addresses to ping
@@ -103,9 +104,9 @@ do
 done
 
 
-if ! test -r ./__lagdetect.awk
+if ! test -r ./__sqm_lagthrottle.awk
 then
-  printf 'FATAL: "__lagdetect.awk" not found; are you in the correct directory?"\n'
+  printf 'FATAL: "__sqm_lagthrottle.awk" not found; are you in the correct directory?"\n'
   exit 1
 fi
 
@@ -238,4 +239,4 @@ fping --loop --retry=1 --size=1280 --period="${PING_INTERVAL}" --random ${PING_P
   -v PINGSLOTS="${PING_SLOTS_PER_PEER}" \
   -v FUDGE="${FUDGE_MS}" \
   -v PING_PEERS="${PING_PEERS}" \
-  -f ./__lagdetect.awk
+  -f ./__sqm_lagthrottle.awk
similarity index 96%
rename from lagdetect_suggest_config
rename to sqm_lagthrottle_suggest_config.sh
index 654abfef27c105a95cf922e9dccd0762174b6b93..7a698bb5dd17ee1e2d2a7608801cb179818d4ad5 100755 (executable)
@@ -15,7 +15,7 @@
 #  You should have received a copy of the GNU General Public License
 #  along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
-for p in sort sleep cat awk fping
+for p in sort sleep cat awk tee fping
 do
   type "${p}" >/dev/null || { printf 'FATAL: Required program "%s" not installed.\n' "${p}" >&2; exit 1; }
 done
@@ -27,7 +27,7 @@ POTENTIAL_PING_PEERS='1.1.1.1 8.8.8.8 a.root-servers.net b.root-servers.net c.ro
 set -u
 
 echo "This script will ping potential peers for two minutes," >&2
-echo "record stats, and recommend configuration values for lagdetect.sh" >&2
+echo "record stats, and recommend configuration values for sqm_lagthrottle.sh" >&2
 echo "" >&2
 echo "Please keep your Internet-directed traffic at a minimum while pinging." >&2
 echo "" >&2