diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-22 22:24:10 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-22 22:24:10 +0000 |
commit | d4754b334c1780db1dff77c96c68e2f6883a44b3 (patch) | |
tree | 39c58f653da2090126b2dcb65e82b09e4097250c /src/or/router.c | |
parent | b9cdb142c90755a12b84d7f656c7c1fab72f8055 (diff) | |
download | tor-d4754b334c1780db1dff77c96c68e2f6883a44b3.tar.gz tor-d4754b334c1780db1dff77c96c68e2f6883a44b3.zip |
Compile cleanly on windows; prevent some insane bandwidth cases (e.g., "BandwidthBurst 1000 TB" from occuring.
svn:r2941
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index 286ba46779..9690860954 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -561,8 +561,8 @@ int router_rebuild_descriptor(int force) { } get_platform_str(platform, sizeof(platform)); ri->platform = tor_strdup(platform); - ri->bandwidthrate = options->BandwidthRate; - ri->bandwidthburst = options->BandwidthBurst; + ri->bandwidthrate = (int)options->BandwidthRate; + ri->bandwidthburst = (int)options->BandwidthBurst; ri->bandwidthcapacity = router_get_bandwidth_capacity(); router_add_exit_policy_from_config(ri); if(desc_routerinfo) /* inherit values */ |