[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8713 - GNUnet/src/applications/dv_dht/tools
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8713 - GNUnet/src/applications/dv_dht/tools |
Date: |
Thu, 16 Jul 2009 15:47:47 -0600 |
Author: nevans
Date: 2009-07-16 15:47:47 -0600 (Thu, 16 Jul 2009)
New Revision: 8713
Modified:
GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c
GNUnet/src/applications/dv_dht/tools/dv_dht_driver_new.c
Log:
Modified: GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c
===================================================================
--- GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c 2009-07-16
21:14:40 UTC (rev 8712)
+++ GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c 2009-07-16
21:47:47 UTC (rev 8713)
@@ -190,7 +190,7 @@
{
ret =
sqlapi->insert_trial (&trialuid, num_peers, topology, put_items,
- get_requests, 1, settle_time, "");
+ get_requests, 1, settle_time,
DEFAULT_NUM_ROUNDS, "");
}
if (ret != GNUNET_OK)
return GNUNET_SYSERR;
Modified: GNUnet/src/applications/dv_dht/tools/dv_dht_driver_new.c
===================================================================
--- GNUnet/src/applications/dv_dht/tools/dv_dht_driver_new.c 2009-07-16
21:14:40 UTC (rev 8712)
+++ GNUnet/src/applications/dv_dht/tools/dv_dht_driver_new.c 2009-07-16
21:47:47 UTC (rev 8713)
@@ -170,7 +170,7 @@
struct GNUNET_DV_DHT_keys keys[put_items];
struct GNUNET_REMOTE_TESTING_DaemonContext *pos;
int ret = 0;
- unsigned int thread_count = 0;
+ int thread_count = 0;
struct GNUNET_ClientServerConnection *sock;
int i;
@@ -209,14 +209,14 @@
ret =
sqlapi->insert_trial (&trialuid, num_peers, topology, put_items,
get_requests, concurrent_requests,
- settle_time, trialmessage);
+ settle_time, num_rounds, trialmessage);
}
else
{
ret =
sqlapi->insert_trial (&trialuid, num_peers, topology, put_items,
get_requests, concurrent_requests,
- settle_time, "");
+ settle_time, num_rounds, "");
}
}
if (ret != GNUNET_OK)
@@ -337,6 +337,7 @@
GNUNET_ECRS_BLOCKTYPE_DHT_STRING2STRING,
&keys[random_key].key);
GNUNET_GE_ASSERT (NULL, gets[thread_count] != NULL);
+ thread_count++;
}
for (k = 0; k < num_rounds; k++)
@@ -367,11 +368,17 @@
thread_count = 0;
}
else
- thread_count++;
+ printf("Thread count is %d\n", thread_count);
}
printf ("Found %u out of %llu attempts.\n", found, get_requests);
-
+ for (j = 0; j < thread_count; j++)
+ {
+ printf ("Stopping request %d\n", j);
+ GNUNET_DV_DHT_get_stop (dctx[j], gets[j]);
+ GNUNET_thread_sleep (50 * GNUNET_CRON_MILLISECONDS);
+ GNUNET_DV_DHT_context_destroy (dctx[j]);
+ }
pos = peers;
while (pos != NULL)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8713 - GNUnet/src/applications/dv_dht/tools,
gnunet <=