diff options
author | David Goulet <dgoulet@torproject.org> | 2021-01-26 11:57:58 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-02-22 15:48:43 -0500 |
commit | 99703eaca0f575e4739523ca815cf55329d16024 (patch) | |
tree | c7918b7cf1e573dbde2b1578e197ce6b76c7434a /src/test/test_dos.c | |
parent | 94b56eaa7597e4a091a5b51d2c9032ea046631e3 (diff) | |
download | tor-99703eaca0f575e4739523ca815cf55329d16024.tar.gz tor-99703eaca0f575e4739523ca815cf55329d16024.zip |
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 <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_dos.c')
-rw-r--r-- | src/test/test_dos.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |