gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: set: log set difference est


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: set: log set difference estimate
Date: Wed, 01 Mar 2017 00:03:57 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 2f3ffc2b0 set: log set difference estimate
2f3ffc2b0 is described below

commit 2f3ffc2b053725a26be07763b02091439ae41005
Author: Florian Dold <address@hidden>
AuthorDate: Wed Mar 1 00:03:51 2017 +0100

    set: log set difference estimate
---
 src/set/gnunet-service-set_union.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/set/gnunet-service-set_union.c 
b/src/set/gnunet-service-set_union.c
index f46713c31..9ca9961ef 100644
--- a/src/set/gnunet-service-set_union.c
+++ b/src/set/gnunet-service-set_union.c
@@ -877,6 +877,8 @@ handle_p2p_strata_estimator (void *cls,
   if (diff > 200)
     diff = diff * 3 / 2; 
 
+
+
   strata_estimator_destroy (remote_se);
   strata_estimator_destroy (op->state->se);
   op->state->se = NULL;
@@ -885,6 +887,17 @@ handle_p2p_strata_estimator (void *cls,
        diff,
        1<<get_order_from_difference (diff));
 
+  {
+    char *set_debug;
+    set_debug = getenv ("GNUNET_SET_BENCHMARK");
+    if ( (NULL != set_debug) && (0 == strcmp (set_debug, "1")) )
+    {
+      FILE *f = fopen ("set.log", "a");
+      fprintf (f, "%llu", (unsigned long long) diff);
+      fclose (f);
+    }
+  }
+
   if ((GNUNET_YES == op->spec->byzantine) && (other_size < 
op->spec->byzantine_lower_bound))
   {
     GNUNET_break (0);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]