From 9217ee6dcc21681036296d32b19116a44e128e2f Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 26 Sep 2013 09:29:10 +0000 Subject: [PATCH] modified termination condition --- ...test_ats_api_performance_monitor_initial_callback.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ats/test_ats_api_performance_monitor_initial_callback.c b/src/ats/test_ats_api_performance_monitor_initial_callback.c index 3d7f26f6a..e3af48cc6 100644 --- a/src/ats/test_ats_api_performance_monitor_initial_callback.c +++ b/src/ats/test_ats_api_performance_monitor_initial_callback.c @@ -106,16 +106,16 @@ ats_perf_cb (void *cls, static int peer0 = GNUNET_NO; static int peer1 = GNUNET_NO; static int done = GNUNET_NO; - GNUNET_break (0); - if ((GNUNET_NO == peer0) && (0 == memcmp (address, &p[0].id, sizeof (p[0].id)))) + + if (0 == memcmp (address, &p[0].id, sizeof (p[0].id))) { - peer0 = GNUNET_YES; + peer0 ++; } if ((GNUNET_NO == peer0) && (0 == memcmp (address, &p[1].id, sizeof (p[1].id)))) { - peer1 = GNUNET_YES; + peer1 ++; } - if ((peer0 == GNUNET_YES) && (peer1 = GNUNET_YES) && (GNUNET_NO == done)) + if ((2 == peer0) && (2 == peer1) && (GNUNET_NO == done)) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Done\n"); -- 2.25.1