From 50863008150caa3a71fd2d8f5f9c18292ed13c24 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 10 Jan 2004 23:40:38 +0000 Subject: split the token bucket into 'rate' and 'burst' params we're not entirely migrated to burst yet, for backward compatibility note some win32 probable-bugs clean up routerlist.c svn:r982 --- src/or/router.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/or/router.c') diff --git a/src/or/router.c b/src/or/router.c index af1309c9d..9297e2bb9 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -338,7 +338,8 @@ int router_rebuild_descriptor(void) { ri->onion_pkey = crypto_pk_dup_key(get_onion_key()); ri->link_pkey = crypto_pk_dup_key(get_link_key()); ri->identity_pkey = crypto_pk_dup_key(get_identity_key()); - ri->bandwidth = options.TotalBandwidth; + ri->bandwidthrate = options.BandwidthRate; + ri->bandwidthburst = options.BandwidthBurst; ri->exit_policy = NULL; /* zero it out first */ router_add_exit_policy_from_config(ri); if (desc_routerinfo) @@ -421,7 +422,8 @@ int router_dump_router_to_string(char *s, int maxlen, routerinfo_t *router, router->or_port, router->socks_port, router->dir_port, - (int) router->bandwidth, + (int) router->bandwidthrate, +/* XXXBC also write bandwidthburst */ platform, published, onion_pkey, link_pkey, identity_pkey); -- cgit v1.2.3