gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r402 - branches/GNUnet06/src/server


From: grothoff
Subject: [GNUnet-SVN] r402 - branches/GNUnet06/src/server
Date: Mon, 7 Mar 2005 04:21:20 -0800 (PST)

Author: grothoff
Date: 2005-03-07 04:21:17 -0800 (Mon, 07 Mar 2005)
New Revision: 402

Modified:
   branches/GNUnet06/src/server/connection.c
Log:
big bad bug

Modified: branches/GNUnet06/src/server/connection.c
===================================================================
--- branches/GNUnet06/src/server/connection.c   2005-03-07 09:02:48 UTC (rev 
401)
+++ branches/GNUnet06/src/server/connection.c   2005-03-07 12:21:17 UTC (rev 
402)
@@ -2170,7 +2170,10 @@
      potentially under-allocated.  Since there's always some
      (unencrypted) traffic that we're not quite accounting for anyway,
      that's probably not so bad. */
-  while (schedulableBandwidth > CONNECTION_MAX_HOSTS_ * 100) {
+  didAssign = YES;
+  while ( (schedulableBandwidth > CONNECTION_MAX_HOSTS_ * 100) &&
+         (activePeerCount > 0) &&
+         (didAssign == YES) ) {
     didAssign = NO;
     decrementSB = 0;
     for (u=0;u<activePeerCount;u++) {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]