From b512cbfdb9c2add88338ce5caf4b5665915d0fae Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 17 Sep 2019 11:22:58 +0200 Subject: [PATCH] Fix parse lib --- scripts/parse_lib.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/parse_lib.sh b/scripts/parse_lib.sh index eea8df8..4c9b116 100644 --- a/scripts/parse_lib.sh +++ b/scripts/parse_lib.sh @@ -7,7 +7,7 @@ is_measurement_done() { } extract_us() { - cat ./out/$1-$2/res/*.csv | grep -P "Packet (\d+) latency (\d+)" | perl -i -pe's/^.*Packet (\d+) latency (\d+).*$/$2,$1/' + cat ./out/$1-$2/res/*.csv | grep -P "Packet (\d+) latency (\d+)" | perl -pe's/^.*Packet (\d+) latency (\d+).*$/$2,$1/' } parse_latency() { @@ -72,7 +72,7 @@ parse_thunder_drop_burst() { echo "run,prev,cur,count" get_xp $1 | while read r; do for i in $(seq 0 1 $2); do - cat out/$r-$i/log/client-donar-stdout.log | ./drop_burst_parse.py $r-$i || true + cat out/$r-$i/res/thunder.csv | ./drop_burst_parse.py $r-$i || true done done } @@ -81,7 +81,7 @@ 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/" + grep -Po "Delivered \d+ packets" out/$r-$i/log/client-donar-stdout.log | grep -Po "\d+"|sort|uniq -c|perl -pe"s/^\s*(\d+)\s+(\d+)$/$r-$i,\$2,\$1/" done done }