[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8969 - GNUnet/src/applications/dv_dht/tools
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8969 - GNUnet/src/applications/dv_dht/tools |
Date: |
Tue, 8 Sep 2009 17:42:31 -0600 |
Author: nevans
Date: 2009-09-08 17:42:30 -0600 (Tue, 08 Sep 2009)
New Revision: 8969
Modified:
GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c
Log:
Modified: GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c
===================================================================
--- GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c 2009-09-08
08:10:18 UTC (rev 8968)
+++ GNUnet/src/applications/dv_dht/tools/dv_dht_driver.c 2009-09-08
23:42:30 UTC (rev 8969)
@@ -64,6 +64,7 @@
static unsigned long long malicious_droppers;
static unsigned long long totalBytesDropped;
static unsigned long long totalMessagesDropped;
+static unsigned long long unknownPeers;
static unsigned long long maxnetbps;
static int randomized_gets;
@@ -179,6 +180,11 @@
fprintf (stderr, "%s : %llu\n", name, value);
}
+ if ((value > 0)
+ && (strstr (name, _("# dv messages to unknown peers")) != NULL))
+ {
+ unknownPeers += value;
+ }
return GNUNET_OK;
}
@@ -442,6 +448,9 @@
GNUNET_DV_DHT_context_destroy (dctx[j]);
}
+ totalMessagesDropped = 0;
+ totalBytesDropped = 0;
+ unknownPeers = 0;
for (i = 0; i < num_peers; i++)
{
if (GNUNET_shutdown_test () == GNUNET_YES)
@@ -466,9 +475,12 @@
GNUNET_REMOTE_kill_daemon (pos);
pos = pos->next;
}
-
+ fprintf (stdout,
+ "Updating trial with end information.\nTrialuid: %llu\nMessages
Dropped: %llu\nBytes Dropped: %llu\nDV Messages to Unknown Peers: %llu\n",
+ trialuid, totalMessagesDropped, totalBytesDropped, unknownPeers);
ret =
- sqlapi->update_trial (trialuid, totalMessagesDropped, totalBytesDropped);
+ sqlapi->update_trial (trialuid, totalMessagesDropped, totalBytesDropped,
+ unknownPeers);
GNUNET_free (peers);
return ret;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8969 - GNUnet/src/applications/dv_dht/tools,
gnunet <=