summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Summermatter <elias.summermatter@seccom.ch>2021-04-03 20:01:05 +0200
committerElias Summermatter <elias.summermatter@seccom.ch>2021-04-03 20:01:05 +0200
commit0aa89b4d44739ec107470530682c540ca3904701 (patch)
tree4e52c01e9084bacc82b622e924bf5775bfd36d7f
parent87cafbc6ca1450c83bef94a89f09fd124cebd84f (diff)
Fixed some stack smashing error ;-)
-rw-r--r--src/setu/gnunet-service-setu.c4
-rw-r--r--src/setu/perf_setu_api.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index c053fce76..58f3c5198 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -751,7 +751,6 @@ calculate_perf_rtt() {
* In case of a differential sync 3 rtt's are needed.
* for every active/passive switch additional 3.5 rtt's are used
*/
-
if (( perf_rtt.element.received != 0 ) ||
( perf_rtt.element.sent != 0)) {
int iterations = perf_rtt.active_passive_switches;
@@ -789,7 +788,8 @@ calculate_perf_rtt() {
*/
float factor;
GNUNET_CONFIGURATION_get_value_float(setu_cfg,"IBF", "BUCKET_NUMBER_FACTOR", &factor);
- int num_per_bucket;
+ return;
+ long long num_per_bucket;
GNUNET_CONFIGURATION_get_value_number(setu_cfg,"IBF", "NUMBER_PER_BUCKET", &num_per_bucket);
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c
index e8a3833bd..799462486 100644
--- a/src/setu/perf_setu_api.c
+++ b/src/setu/perf_setu_api.c
@@ -482,6 +482,11 @@ main (int argc, char **argv)
"WARNING",
NULL);
- execute_perf();
+ GNUNET_TESTING_service_run("perf_setu_api",
+ "arm",
+ "test_setu.conf",
+ &run,
+ NULL);
+ //execute_perf();
return 0;
}