[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] backport the fix where we don"t mind if bandwidthburst == b...



Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/0091/tor/src/or

Modified Files:
      Tag: tor-0_0_9-patches
	config.c 
Log Message:
backport the fix where we don't mind if bandwidthburst == bandwidthrate


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.286.2.8
retrieving revision 1.286.2.9
diff -u -d -r1.286.2.8 -r1.286.2.9
--- config.c	4 Feb 2005 00:56:23 -0000	1.286.2.8
+++ config.c	4 Feb 2005 07:15:40 -0000	1.286.2.9
@@ -1377,8 +1377,8 @@
     result = -1;
   }
 
-  if (2*options->BandwidthRate >= options->BandwidthBurst) {
-    log(LOG_WARN,"BandwidthBurst must be more than twice BandwidthRate.");
+  if (options->BandwidthRate > options->BandwidthBurst) {
+    log(LOG_WARN,"BandwidthBurst must be at least equal to BandwidthRate.");
     result = -1;
   }
   if (options->BandwidthRate > INT_MAX) {