diff options
-rwxr-xr-x | scripts/test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/test.sh b/scripts/test.sh index b0a97e5..cff1acf 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -85,7 +85,7 @@ function main() { stderr_file=$tmp_dir/$relay-$limit.stderr cat "$stdout_file" >> "$all_file" - avg_rate=$(grep 'Average rate:' "$stderr_file" | tail -n1 | xargs | cut -d' ' -f3) + avg_rate=$(grep 'Average rate:' "$stderr_file" | tail -n1 | xargs | cut -d' ' -f3)s if [[ -z "$avg_rate" ]]; then avg_rate="n/a" fi @@ -96,7 +96,7 @@ function main() { failure=$(grep 'Failure:' "$stderr_file" | tail -n1 | xargs | cut -d' ' -f2) failure_dns=$(grep 'DNS:' "$stderr_file" | tail -n1 | xargs | cut -d' ' -f2) failure_dns_detailed=$(grep 'DNS:' "$stderr_file" | tail -n1 | xargs | cut -d' ' -f3-) - info "relay:$relay limit:$limit/s avg-rate:$avg_rate/s onions:$num_onion connected:$success/$processed dns-error:$failure_dns/$failure $failure_dns_detailed" + info "relay:$relay limit:$limit/s avg-rate:$avg_rate onions:$num_onion connected:$success/$processed dns-error:$failure_dns/$failure $failure_dns_detailed" output_file=$out_dir/$relay-l$limit.txt mv "$stdout_file" "$output_file" |