aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 12:25:49 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 12:25:49 +0200
commit1bd49fe925f73bbff94477b9b847252885729b92 (patch)
tree7e5359395fe78b233514cc05e57a98562a07d9d0 /scripts
parentd706c7a3b35f48225cfe7dc91960e58657056bbe (diff)
Output deadline error metrics
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
index de7462c..57e319e 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -100,9 +100,10 @@ function main() {
processed=$(grep 'Processed:' "$stderr_file" | tail -n1 | xargs | cut -d' ' -f2)
success=$(grep 'Success:' "$stderr_file" | tail -n1 | xargs | cut -d' ' -f2)
failure=$(grep 'Failure:' "$stderr_file" | tail -n1 | xargs | cut -d' ' -f2)
+ failure_ctx=$(grep 'CTX:' "$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 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 deadline-error:$failure_ctx/$failure dns-error:$failure_dns/$failure $failure_dns_detailed"
output_file=$out_dir/$relay-l$limit.txt
mv "$stdout_file" "$output_file"