Skip to content

Commit

Permalink
Editorial tweaks;
Browse files Browse the repository at this point in the history
Pause before printing a "." so that passphrase error message doesn't have a dot
  • Loading branch information
richb-hanover committed Oct 7, 2024
1 parent b6572f6 commit 9c32616
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions betterspeedtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Output the measured transfer rates and the resulting ping latency
# It's better than 'speedtest.net' because it measures latency *while* measuring the speed.

# Usage: sh betterspeedtest.sh [-4 -6] [ -H netperf-server ] [ -t duration ] [ -p host-to-ping ] [ -i ] [ -n simultaneous-streams ]
# Usage: sh betterspeedtest.sh -Z passphrase [-4 -6] [ -H netperf-server ] [ -t duration ] [ -p host-to-ping ] [ -i ] [ -n simultaneous-streams ]

# Options: If options are present:
#
Expand All @@ -17,7 +17,7 @@
# -p | --ping: Host to ping to measure latency (default - gstatic.com)
# -i | --idle: Don't send traffic, only measure idle latency
# -n | --number: Number of simultaneous sessions (default - 5 sessions)
# -Z Required passphrase - see http://netperf.bufferbloat.net for today's value
# -Z Required passphrase - see https://netperf.bufferbloat.net for today's value

# Copyright (c) 2014-2024 - Rich Brown [email protected]
# GPLv2
Expand Down Expand Up @@ -72,8 +72,8 @@ sed 's/^.*time=\([^ ]*\) ms/\1/'| \
# Print a line of dots as a progress indicator.
print_dots() {
while : ; do
printf "."
sleep 1
printf "."
done
}

Expand Down Expand Up @@ -118,7 +118,7 @@ catch_interrupt() {
# Display "no passphrase" message and exit
no_passphrase() {
echo ""
echo "Missing passphrase - see https://$TESTHOST"
echo "Missing/incorrect passphrase - see https://$TESTHOST"
echo ""
exit 1
}
Expand Down

0 comments on commit 9c32616

Please sign in to comment.