aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 10:48:35 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 10:48:35 +0200
commit6f0064b1401788dcc91fcd54da3b4702734b13c3 (patch)
treee05a24eb535deaf541e4771a39c82c47a76fedfc /scripts
parent3360e75027710dee2bc67501f99ad15b86b1c66a (diff)
Fix n/a print, again
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test.sh4
1 files changed, 3 insertions, 1 deletions
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)