From 9d857b9e2498a6bff379bbb8870b9b0495c3c74a Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 17 Sep 2019 10:52:54 +0200 Subject: [PATCH] WIP parse libs --- scripts/parse_lib.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 +}