gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 124/164: Fixed some bug


From: gnunet
Subject: [gnunet] 124/164: Fixed some bug
Date: Fri, 30 Jul 2021 15:33:10 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

commit 3634dc7016b4a4f5a80145e8540cee9dc0c76c39
Author: Elias Summermatter <elias.summermatter@seccom.ch>
AuthorDate: Sun May 30 14:26:00 2021 +0200

    Fixed some bug
---
 src/setu/gnunet-service-setu.c | 7 +++----
 src/setu/perf_setu_api.c       | 2 +-
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index ad2713719..036fd973c 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -2238,7 +2238,7 @@ handle_union_p2p_strata_estimator (void *cls,
 
   /** Calculate avg element size if not initial sync **/
   uint64_t avg_element_size = 0;
-  if(0 < op->number_elements_local) {
+  if(0 < op->local_element_count) {
       GNUNET_CONTAINER_multihashmap_iterate(op->set->content->elements,
                                             
&determinate_avg_element_size_iterator,
                                             op);
@@ -2291,8 +2291,7 @@ handle_union_p2p_strata_estimator (void *cls,
   }
 
   if ((GNUNET_YES == op->force_full) ||
-      ( op->mode_of_operation != DIFFERENTIAL_SYNC) ||
-      (0 == other_size))
+      ( op->mode_of_operation != DIFFERENTIAL_SYNC))
   {
     LOG (GNUNET_ERROR_TYPE_DEBUG,
          "Deciding to go for full set transmission (diff=%d, own set=%llu)\n",
@@ -3452,7 +3451,7 @@ handle_union_p2p_request_full (void *cls,
   if(FULL_SYNC_REMOTE_SENDING_FIRST != mode_of_operation)
   {
       LOG (GNUNET_ERROR_TYPE_ERROR,
-           "PROTOCOL VIOLATION: Remote peer choose to send his full set first 
but correct mode would have been"
+           "PROTOCOL VIOLATION: Remote peer choose to request the full set 
first but correct mode would have been"
            " : %d\n", mode_of_operation);
       GNUNET_break_op (0);
       fail_union_operation (op);
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c
index 599ad7b2c..c47bd8f66 100644
--- a/src/setu/perf_setu_api.c
+++ b/src/setu/perf_setu_api.c
@@ -405,7 +405,7 @@ run (void *cls,
                 "Running real set-reconciliation\n");
     //init_set1 ();
     // limit ~23800 element total
-    initRandomSets(50, 500,500,32);
+    initRandomSets(470, 500,500,32);
 }
 
 void perf_thread() {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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