aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
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)