WIP links parsing

This commit is contained in:
Quentin 2019-09-16 18:09:41 +02:00
parent 5eef0c6651
commit 46bf9fbc25
3 changed files with 13 additions and 1 deletions

View file

@ -352,6 +352,10 @@ thunder_configure_2_full_parse_bw:
@. parse_lib.sh && \ @. parse_lib.sh && \
parse_thunder_bw thunder_configure_2 27 parse_thunder_bw thunder_configure_2 27
thunder_configure_2_full_parse_links:
@. parse_lib.sh && \
parse_thunder_links thunder_configure_2 27
tor_just_many_latencies: tor_just_many_latencies:
./run-3 \ ./run-3 \
16,tor_just_many_latencies . \ 16,tor_just_many_latencies . \

View file

@ -2,7 +2,6 @@
import sys,re import sys,re
print("run,ts,link_id,status")
for line in sys.stdin: for line in sys.stdin:
res = re.match(r"\[(\d+)\] Blacklisted links: ([_U]+)", line) res = re.match(r"\[(\d+)\] Blacklisted links: ([_U]+)", line)
if not res: continue if not res: continue

View file

@ -49,3 +49,12 @@ parse_thunder_bw() {
done done
done done
} }
parse_thunder_links() {
echo "run,ts,link_id,status"
get_xp $1 | while read r; do
for i in $(seq 0 1 $2); do
grep -q 'thunder-server 8' out/$r-$i/info.txt && cat out/$r-$i/log/client-donar-stdout.log | ./links_parse.py $r-$i
done
done
}