From a09d5f5735abe2e1d16cf0ee9389ae096d5e7ef1 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 31 Jan 2018 11:13:17 +1100 Subject: dos: Make sure cc_stats_refill_bucket can't overflow while calculating Debug log the elapsed time in cc_stats_refill_bucket Part of #25094. Signed-off-by: David Goulet --- src/or/dos.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/dos.h') diff --git a/src/or/dos.h b/src/or/dos.h index 8695512ea6..5d35a2b12e 100644 --- a/src/or/dos.h +++ b/src/or/dos.h @@ -125,7 +125,7 @@ STATIC uint32_t get_param_cc_circuit_burst(const networkstatus_t *ns); STATIC uint32_t get_param_cc_min_concurrent_connection( const networkstatus_t *ns); -STATIC uint32_t get_circuit_rate_per_second(void); +STATIC uint64_t get_circuit_rate_per_second(void); STATIC void cc_stats_refill_bucket(cc_client_stats_t *stats, const tor_addr_t *addr); -- cgit v1.2.3-54-g00ecf