[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9849 - GNUnet/src/applications/fs/gap
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9849 - GNUnet/src/applications/fs/gap |
Date: |
Mon, 21 Dec 2009 15:04:07 +0100 |
Author: grothoff
Date: 2009-12-21 15:04:07 +0100 (Mon, 21 Dec 2009)
New Revision: 9849
Modified:
GNUnet/src/applications/fs/gap/migration.c
GNUnet/src/applications/fs/gap/querymanager.c
Log:
nate, why, why, why
Modified: GNUnet/src/applications/fs/gap/migration.c
===================================================================
--- GNUnet/src/applications/fs/gap/migration.c 2009-12-21 11:56:19 UTC (rev
9848)
+++ GNUnet/src/applications/fs/gap/migration.c 2009-12-21 14:04:07 UTC (rev
9849)
@@ -131,6 +131,8 @@
unsigned int minDist;
struct MigrationRecord *rec;
+ if (GNUNET_random_u32(GNUNET_RANDOM_QUALITY_WEAK, 2) == 0)
+ return 0; /* skip migration 50% of the time */
if (content_size == 0)
return 0;
index = GNUNET_FS_PT_intern (receiver);
Modified: GNUnet/src/applications/fs/gap/querymanager.c
===================================================================
--- GNUnet/src/applications/fs/gap/querymanager.c 2009-12-21 11:56:19 UTC
(rev 9848)
+++ GNUnet/src/applications/fs/gap/querymanager.c 2009-12-21 14:04:07 UTC
(rev 9849)
@@ -285,7 +285,6 @@
GNUNET_mutex_unlock (GNUNET_FS_lock);
request->last_dht_get = GNUNET_get_time ();
request->dht_back_off = GNUNET_GAP_MAX_DHT_DELAY;
- return;
}
}
else if ((anonymityLevel == 0) && (target != NULL))
@@ -768,10 +767,10 @@
(request->last_ttl_used * GNUNET_CRON_SECONDS +
request->last_request_time < now))
{
- /*if ((GNUNET_OK ==
- GNUNET_FS_PLAN_request (client->client, 0, request))
- && (stats != NULL))
- stats->change (stat_gap_client_query_injected, 1); */
+ if ((GNUNET_OK ==
+ GNUNET_FS_PLAN_request (client->client, 0, request))
+ && (stats != NULL))
+ stats->change (stat_gap_client_query_injected, 1);
}
if ((request->anonymityLevel == 0) &&
@@ -780,7 +779,7 @@
if (request->dht_back_off * 2 > request->dht_back_off)
request->dht_back_off *= 2;
request->last_dht_get = now;
- /*GNUNET_FS_DV_DHT_execute_query (request->type,
&request->queries[0]); */
+ GNUNET_FS_DV_DHT_execute_query (request->type, &request->queries[0]);
}
}
GNUNET_mutex_unlock (GNUNET_FS_lock);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9849 - GNUnet/src/applications/fs/gap,
gnunet <=