From 8aeba861cf7a7fc1f4f0f07506f13e7a1294a5dd Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 31 Oct 2017 06:38:32 -0700 Subject: [PATCH] fix script to move db files again --- xwords4/linux/scripts/discon_ok2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xwords4/linux/scripts/discon_ok2.sh b/xwords4/linux/scripts/discon_ok2.sh index cb3a90787..a124a2cd7 100755 --- a/xwords4/linux/scripts/discon_ok2.sh +++ b/xwords4/linux/scripts/discon_ok2.sh @@ -195,9 +195,6 @@ build_cmds() { for NLOCALS in ${LOCALS[@]}; do DEV=$((DEV + 1)) FILE="${LOGDIR}/GAME_${GAME}_${DEV}.sql3" - if [ $((RANDOM % 100)) -lt $UDP_PCT_START ]; then - FILE="$FILE --use-udp" - fi LOG=${LOGDIR}/${GAME}_${DEV}_LOG.txt > $LOG # clear the log @@ -220,6 +217,9 @@ build_cmds() { PARAMS="$PARAMS --game-dict $DICT --relay-port $PORT --host $HOST " PARAMS="$PARAMS --slow-robot 1:3 --skip-confirm" PARAMS="$PARAMS --db $FILE" + if [ $((RANDOM % 100)) -lt $UDP_PCT_START ]; then + PARAMS="$PARAMS --use-udp" + fi PARAMS="$PARAMS --drop-nth-packet $DROP_N $PLAT_PARMS" if [ $((${RANDOM}%100)) -lt $HTTP_PCT ]; then PARAMS="$PARAMS --use-http"