]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
test: Remove a redundant round from test_dos_bucket_refill
authorteor <teor2345@gmail.com>
Wed, 31 Jan 2018 00:11:08 +0000 (11:11 +1100)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 31 Jan 2018 14:19:39 +0000 (09:19 -0500)
This round is left over from the tenths of a second code.

Part of #25094.

src/test/test_dos.c

index 5a8474ad8bfe0292c6f9069f1865ffbcdf1e582b..80abc1937798f5a1315dfc989be07ed1b5fa0246 100644 (file)
@@ -176,7 +176,7 @@ test_dos_bucket_refill(void *arg)
   /* Initialize DoS subsystem and get relevant limits */
   dos_init();
   uint32_t max_circuit_count = get_param_cc_circuit_burst(NULL);
-  int circ_rate = tor_lround(get_circuit_rate_per_second());
+  int circ_rate = get_circuit_rate_per_second();
   /* Check that the circuit rate is a positive number and smaller than the max
    * circuit count */
   tt_int_op(circ_rate, OP_GT, 1);