diff --git a/scripts/parse_lib.sh b/scripts/parse_lib.sh index ac6c9fc..2d39fc5 100644 --- a/scripts/parse_lib.sh +++ b/scripts/parse_lib.sh @@ -58,3 +58,20 @@ parse_thunder_links() { done done } + +parse_thunder_drop() { + echo "b" +} + +parse_thunder_drop_burst() { + echo "a" +} + +parse_thunder_red() { + echo "run,delivered_at_once,occur" + get_xp $1 | while read r; do + for i in $(seq 0 1 $2); do + grep -Po "Delivered \d+ packets" out/$r-$i/log/client-donar-stdout.log | grep -Po "\d+"|sort|uniq -c|perl -i -pe"s/^\s*(\d+)\s+(\d+)$/$r-$i,\$2,\$1/" + done + done +}