summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/setu/gnunet-service-setu.c3
-rw-r--r--src/setu/perf_setu_api.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index 58717909e..b3cbf6d0e 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -695,7 +695,7 @@ calculate_perf_rtt() {
* for every active/passive switch additional 3.5 rtt's are used
*/
- float iterations = perf_rtt.ibf.received;
+ int iterations = perf_rtt.ibf.received;
if(iterations > 1)
rtt += (iterations - 1 ) * 0.5;
rtt += 3 * iterations;
@@ -717,6 +717,7 @@ calculate_perf_rtt() {
LOG(GNUNET_ERROR_TYPE_ERROR,"Bytes Transmitted: %d\n", bytes_transmitted);
+ LOG(GNUNET_ERROR_TYPE_ERROR,"Reached tradeoff bandwidth/rtt: %f\n", (bytes_transmitted / rtt ));
return rtt;
}
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c
index 990e69ea8..73b61c02a 100644
--- a/src/setu/perf_setu_api.c
+++ b/src/setu/perf_setu_api.c
@@ -395,7 +395,7 @@ run (void *cls,
"Running real set-reconciliation\n");
//init_set1 ();
// limit ~23800 element total
- initRandomSets(0,200,400,32);
+ initRandomSets(88,100,90,32);
}
static void execute_perf()