From 6f0064b1401788dcc91fcd54da3b4702734b13c3 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sun, 2 Apr 2023 10:48:35 +0200 Subject: Fix n/a print, again --- scripts/test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/test.sh b/scripts/test.sh index d19df3c..de7462c 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -89,9 +89,11 @@ function main() { cat "$stdout_file" >> "$all_file" cat "$stdout_file" >> "$lim_file" - avg_rate=$(grep 'Average rate:' "$stderr_file" | tail -n1 | xargs | cut -d' ' -f3)s + avg_rate=$(grep 'Average rate:' "$stderr_file" | tail -n1 | xargs | cut -d' ' -f3) if [[ -z "$avg_rate" ]]; then avg_rate="n/a" + else + avg_rate="$avg_rate"s fi num_onion=$(wc -l "$stdout_file" | cut -d' ' -f1) -- cgit v1.2.3