From 41dfc4c19c4e0ee37d092fa0ed7faf349e6ab467 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 7 Sep 2011 22:00:48 -0400 Subject: Make bufferevents work with TokenBucketRefillInterval --- src/common/compat_libevent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/compat_libevent.h') diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h index 15b0fc273b..0247297177 100644 --- a/src/common/compat_libevent.h +++ b/src/common/compat_libevent.h @@ -62,6 +62,7 @@ int tor_event_base_loopexit(struct event_base *base, struct timeval *tv); typedef struct tor_libevent_cfg { int disable_iocp; int num_cpus; + int msec_per_tick; } tor_libevent_cfg; void tor_libevent_initialize(tor_libevent_cfg *cfg); @@ -73,7 +74,6 @@ void tor_check_libevent_header_compatibility(void); const char *tor_libevent_get_version_str(void); #ifdef USE_BUFFEREVENTS -#define TOR_LIBEVENT_TICKS_PER_SECOND 3 const struct timeval *tor_libevent_get_one_tick_timeout(void); int tor_libevent_using_iocp_bufferevents(void); int tor_set_bufferevent_rate_limit(struct bufferevent *bev, -- cgit v1.2.3-54-g00ecf