summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/setu/gnunet-service-setu.c6
-rw-r--r--src/setu/perf_setu_api.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index d13285a69..c053fce76 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -783,6 +783,7 @@ calculate_perf_rtt() {
LOG(GNUNET_ERROR_TYPE_ERROR,"Estimateded set difference: %d\n", perf_rtt.se_diff);
+
/*
* Write IBF failure rate for different BUCKET_NUMBER_FACTOR
*/
@@ -791,6 +792,7 @@ calculate_perf_rtt() {
int num_per_bucket;
GNUNET_CONFIGURATION_get_value_number(setu_cfg,"IBF", "NUMBER_PER_BUCKET", &num_per_bucket);
+
int decoded = 0;
if(perf_rtt.active_passive_switches == 0)
decoded = 1;
@@ -808,7 +810,6 @@ calculate_perf_rtt() {
FILE *out = fopen("perf_stats.csv", "a");
fprintf(out, "%d,%d,%d,%f\n", perf_rtt.se_diff, perf_rtt.active_passive_switches,bytes_transmitted,rtt);
fclose(out);
- return 0;
return rtt;
}
@@ -3899,8 +3900,7 @@ shutdown_task (void *cls)
GNUNET_YES);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"handled shutdown request\n");
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "RTT:%f\n", calculate_perf_rtt());
+ calculate_perf_rtt();
}
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c
index f4792e38b..e8a3833bd 100644
--- a/src/setu/perf_setu_api.c
+++ b/src/setu/perf_setu_api.c
@@ -407,7 +407,7 @@ run (void *cls,
initRandomSets(450,500,500,32);
}
-static void perf_thread(void *arg) {
+void *perf_thread() {
printf("OK\n");