summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-09-07 22:00:48 -0400
committerNick Mathewson <nickm@torproject.org>2011-09-22 15:07:34 -0400
commit41dfc4c19c4e0ee37d092fa0ed7faf349e6ab467 (patch)
tree621914608ae5e2031a044448ee3c07d68144dbb6 /src/or/config.c
parent052b95e2f196211c97b33ce8c68960e1c2561ea0 (diff)
downloadtor-41dfc4c19c4e0ee37d092fa0ed7faf349e6ab467.tar.gz
tor-41dfc4c19c4e0ee37d092fa0ed7faf349e6ab467.zip
Make bufferevents work with TokenBucketRefillInterval
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 5a7a590685..e22f539ade 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -5645,6 +5645,7 @@ init_libevent(const or_options_t *options)
memset(&cfg, 0, sizeof(cfg));
cfg.disable_iocp = options->DisableIOCP;
cfg.num_cpus = get_num_cpus(options);
+ cfg.msec_per_tick = options->TokenBucketRefillInterval;
tor_libevent_initialize(&cfg);