diff options
Diffstat (limited to 'src/statistics/statistics_api.c')
-rw-r--r-- | src/statistics/statistics_api.c | 8 |
1 files changed, 5 insertions, 3 deletions
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) | |||
1015 | return; | 1015 | return; |
1016 | } | 1016 | } |
1017 | if (0 < GNUNET_MQ_get_length (h->mq)) | 1017 | if (0 < GNUNET_MQ_get_length (h->mq)) |
1018 | return; /* Wait for queue to be reduced more */ | 1018 | return; /* Wait for queue to be reduced more */ |
1019 | /* schedule next action */ | 1019 | /* schedule next action */ |
1020 | while (NULL == h->current) | 1020 | while (NULL == h->current) |
1021 | { | 1021 | { |
@@ -1253,8 +1253,10 @@ add_setter_action (struct GNUNET_STATISTICS_Handle *h, | |||
1253 | } | 1253 | } |
1254 | for (ai = h->action_head; NULL != ai; ai = ai->next) | 1254 | for (ai = h->action_head; NULL != ai; ai = ai->next) |
1255 | { | 1255 | { |
1256 | if (! ( (0 == strcmp (ai->subsystem, h->subsystem)) && | 1256 | if (! ( (0 == strcmp (ai->subsystem, |
1257 | (0 == strcmp (ai->name, name)) && | 1257 | h->subsystem)) && |
1258 | (0 == strcmp (ai->name, | ||
1259 | name)) && | ||
1258 | ( (ACTION_UPDATE == ai->type) || | 1260 | ( (ACTION_UPDATE == ai->type) || |
1259 | (ACTION_SET == ai->type) ) ) ) | 1261 | (ACTION_SET == ai->type) ) ) ) |
1260 | continue; | 1262 | continue; |