From eb49bd8bd671fa3c8997cbea5f139132c1db843c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 21 Oct 2016 14:26:15 +0000 Subject: improve test shutdown and indentation --- src/statistics/statistics_api.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/statistics/statistics_api.c') diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index e8aa9cf9c..bfa2da3b4 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c @@ -1015,7 +1015,7 @@ schedule_action (void *cls) return; } if (0 < GNUNET_MQ_get_length (h->mq)) - return; /* Wait for queue to be reduced more */ + return; /* Wait for queue to be reduced more */ /* schedule next action */ while (NULL == h->current) { @@ -1253,8 +1253,10 @@ add_setter_action (struct GNUNET_STATISTICS_Handle *h, } for (ai = h->action_head; NULL != ai; ai = ai->next) { - if (! ( (0 == strcmp (ai->subsystem, h->subsystem)) && - (0 == strcmp (ai->name, name)) && + if (! ( (0 == strcmp (ai->subsystem, + h->subsystem)) && + (0 == strcmp (ai->name, + name)) && ( (ACTION_UPDATE == ai->type) || (ACTION_SET == ai->type) ) ) ) continue; -- cgit v1.2.3