[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r403 - branches/GNUnet06/src/server
From: |
grothoff |
Subject: |
[GNUnet-SVN] r403 - branches/GNUnet06/src/server |
Date: |
Mon, 7 Mar 2005 04:26:12 -0800 (PST) |
Author: grothoff
Date: 2005-03-07 04:26:11 -0800 (Mon, 07 Mar 2005)
New Revision: 403
Modified:
branches/GNUnet06/src/server/connection.c
Log:
more
Modified: branches/GNUnet06/src/server/connection.c
===================================================================
--- branches/GNUnet06/src/server/connection.c 2005-03-07 12:21:17 UTC (rev
402)
+++ branches/GNUnet06/src/server/connection.c 2005-03-07 12:26:11 UTC (rev
403)
@@ -2226,8 +2226,9 @@
/* randomly add the MIN_BPM_PER_PEER to minCon peers; yes, this will
yield some fluctuation, but some amount of fluctuation should be
good since it creates opportunities. */
- for (u=0;u<minCon;u++)
- entries[randomi(activePeerCount)]->idealized_limit += MIN_BPM_PER_PEER;
+ if (activePeerCount > 0)
+ for (u=0;u<minCon;u++)
+ entries[randomi(activePeerCount)]->idealized_limit += MIN_BPM_PER_PEER;
/* prepare for next round */
lastRoundStart = now;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r403 - branches/GNUnet06/src/server,
grothoff <=