X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cache.c;h=aeb662d55bc09e63c18ae856ac182aa04fc6b369;hb=66f9d645f883eee0aa408428eefdebdcc6dcfa7e;hp=69ea864b99dbf1ddb2f35f8e82ae4078b0c8e9e6;hpb=f6d2b3c2f83808f9f3913bf0220b3e6ad84fe23c;p=collectd.git diff --git a/src/utils_cache.c b/src/utils_cache.c index 69ea864b..aeb662d5 100644 --- a/src/utils_cache.c +++ b/src/utils_cache.c @@ -175,7 +175,7 @@ static int uc_send_notification (const char *name) } /* Check if the entry has been updated in the meantime */ - if ((n.time - ce->last_update) < (2 * ce->interval)) + if ((n.time - ce->last_update) < (timeout_g * ce->interval)) { ce->state = STATE_OKAY; pthread_mutex_unlock (&cache_lock);