From 99703eaca0f575e4739523ca815cf55329d16024 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 26 Jan 2021 11:57:58 -0500 Subject: dos: Move concurrent count into conn_stats object No behavior change except for logging. This is so the connection related statistics are in the right object. Related to #40253 Signed-off-by: David Goulet --- src/test/test_dos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/test_dos.c') diff --git a/src/test/test_dos.c b/src/test/test_dos.c index 850bbef59b..cbebecb030 100644 --- a/src/test/test_dos.c +++ b/src/test/test_dos.c @@ -470,7 +470,7 @@ test_known_relay(void *arg) GEOIP_CLIENT_CONNECT); tt_assert(entry); /* We should have a count of 0. */ - tt_uint_op(entry->dos_stats.concurrent_count, OP_EQ, 0); + tt_uint_op(entry->dos_stats.conn_stats.concurrent_count, OP_EQ, 0); /* To make sure that his is working properly, make a unknown client * connection and see if we do get it. */ @@ -483,7 +483,7 @@ test_known_relay(void *arg) GEOIP_CLIENT_CONNECT); tt_assert(entry); /* We should have a count of 2. */ - tt_uint_op(entry->dos_stats.concurrent_count, OP_EQ, 2); + tt_uint_op(entry->dos_stats.conn_stats.concurrent_count, OP_EQ, 2); done: routerstatus_free(rs); routerinfo_free(ri); microdesc_free(md); -- cgit v1.2.3-54-g00ecf