Parcourir la source

Improve the measurement script

Baptiste Jonglez il y a 10 ans
Parent
commit
a80a537c01
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      templates/run.sh

+ 4 - 2
templates/run.sh

@@ -1,14 +1,16 @@
 #!/bin/bash
+#
+# Run without argument for IPv4, and with any argument for IPv6..
 
 # Put your UUID here, and keep it secret!
 UUID="{{ uuid|default('00000000-0000-0000-0000-000000000000') }}"
 PEERFINDER="{{ peerfinder }}"
 NB_PINGS=5
-SLEEP=10
+SLEEP=6
 
 [ -z "$1" ] && FAMILY="ipv4" || FAMILY="ipv6"
 
-[ "$FAMILY" = "ipv4" ] && PING="ping" || PING="ping6"
+[ "$FAMILY" = "ipv4" ] && PING="ping -n -q" || PING="ping6 -n -q"
 
 while :
 do