[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13616 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13616 - gnunet/src/dht |
Date: |
Mon, 8 Nov 2010 15:51:47 +0100 |
Author: grothoff
Date: 2010-11-08 15:51:47 +0100 (Mon, 08 Nov 2010)
New Revision: 13616
Modified:
gnunet/src/dht/gnunet-dht-driver.c
Log:
useless
Modified: gnunet/src/dht/gnunet-dht-driver.c
===================================================================
--- gnunet/src/dht/gnunet-dht-driver.c 2010-11-08 14:47:06 UTC (rev 13615)
+++ gnunet/src/dht/gnunet-dht-driver.c 2010-11-08 14:51:47 UTC (rev 13616)
@@ -1939,15 +1939,8 @@
find_peer_ctx->total = 1;
else if (find_peer_ctx->current_peers - find_peer_ctx->previous_peers >
MAX_FIND_PEER_CUTOFF) /* Found LOTS of peers, still go slowly */
find_peer_ctx->total = find_peer_ctx->last_sent -
(find_peer_ctx->last_sent / 8);
-#if USE_MIN
- else if (find_peer_ctx->current_peers - find_peer_ctx->previous_peers <
MIN_FIND_PEER_CUTOFF)
- find_peer_ctx->total = find_peer_ctx->last_sent * 2; /* FIXME: always
multiply by two (unless above max?) */
else
- find_peer_ctx->total = find_peer_ctx->last_sent;
-#else
- else
find_peer_ctx->total = find_peer_ctx->last_sent * 2;
-#endif
if (find_peer_ctx->total > max_outstanding_find_peers)
find_peer_ctx->total = max_outstanding_find_peers;
@@ -1975,9 +1968,9 @@
{
random = random - num_peers;
}
- #if REAL_RANDOM
+#if REAL_RANDOM
random = GNUNET_CRYPTO_random_u32(GNUNET_CRYPTO_QUALITY_WEAK,
num_peers);
- #endif
+#endif
test_find_peer->daemon = GNUNET_TESTING_daemon_get(pg, random);
}
else /* If we have sent requests, choose peers with a low number of
connections to send requests from */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13616 - gnunet/src/dht,
gnunet <=