aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-rps-profiler.c
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2018-07-03 23:28:27 +0200
committerxrs <xrs@mail36.net>2018-07-03 23:28:27 +0200
commitf293763907abc5e9da76adb44b9648eb43a56f57 (patch)
treee32e2cfb6f5312859087c2dc5f2e66e52a3bada3 /src/rps/gnunet-rps-profiler.c
parentbdb1ee3242fe915f2648295f7430fab70eb31121 (diff)
parent00fc4513ebdb851c79b8f7c2591dffb6bd70c5bd (diff)
downloadgnunet-f293763907abc5e9da76adb44b9648eb43a56f57.tar.gz
gnunet-f293763907abc5e9da76adb44b9648eb43a56f57.zip
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src/rps/gnunet-rps-profiler.c')
-rw-r--r--src/rps/gnunet-rps-profiler.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c
index 16f23e86c..ec73f1803 100644
--- a/src/rps/gnunet-rps-profiler.c
+++ b/src/rps/gnunet-rps-profiler.c
@@ -888,6 +888,7 @@ shutdown_op (void *cls)
888 if (NULL != post_test_task) 888 if (NULL != post_test_task)
889 { 889 {
890 GNUNET_SCHEDULER_cancel (post_test_task); 890 GNUNET_SCHEDULER_cancel (post_test_task);
891 post_test_task = NULL;
891 } 892 }
892 if (NULL != churn_task) 893 if (NULL != churn_task)
893 { 894 {
@@ -899,6 +900,7 @@ shutdown_op (void *cls)
899 if (NULL != rps_peers[i].rps_handle) 900 if (NULL != rps_peers[i].rps_handle)
900 { 901 {
901 GNUNET_RPS_disconnect (rps_peers[i].rps_handle); 902 GNUNET_RPS_disconnect (rps_peers[i].rps_handle);
903 rps_peers[i].rps_handle = NULL;
902 } 904 }
903 if (NULL != rps_peers[i].op) 905 if (NULL != rps_peers[i].op)
904 { 906 {
@@ -2570,7 +2572,7 @@ test_run (void *cls,
2570 if (NULL != churn_task) 2572 if (NULL != churn_task)
2571 GNUNET_SCHEDULER_cancel (churn_task); 2573 GNUNET_SCHEDULER_cancel (churn_task);
2572 post_test_task = GNUNET_SCHEDULER_add_delayed (timeout, &post_test_op, NULL); 2574 post_test_task = GNUNET_SCHEDULER_add_delayed (timeout, &post_test_op, NULL);
2573 timeout = GNUNET_TIME_relative_multiply (timeout, 1 + (0.1 * num_peers)); 2575 timeout = GNUNET_TIME_relative_multiply (timeout, 1.2 + (0.01 * num_peers));
2574 shutdown_task = GNUNET_SCHEDULER_add_shutdown (shutdown_op, NULL); 2576 shutdown_task = GNUNET_SCHEDULER_add_shutdown (shutdown_op, NULL);
2575 shutdown_task = GNUNET_SCHEDULER_add_delayed (timeout, &shutdown_op, NULL); 2577 shutdown_task = GNUNET_SCHEDULER_add_delayed (timeout, &shutdown_op, NULL);
2576 2578