X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils_cache.c;h=aeb662d55bc09e63c18ae856ac182aa04fc6b369;hb=c43464c98c24cd886e839756076a4cded37cdaea;hp=648c54de5b13b498df24b9ac3909eb2275544844;hpb=79c87aeda9172e219a842e393c6499c8bf37662a;p=collectd.git diff --git a/src/utils_cache.c b/src/utils_cache.c index 648c54de..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); @@ -319,7 +319,7 @@ int uc_check_timeout (void) while (c_avl_iterator_next (iter, (void *) &key, (void *) &ce) == 0) { /* If entry has not been updated, add to `keys' array */ - if ((now - ce->last_update) >= (2 * ce->interval)) + if ((now - ce->last_update) >= (timeout_g * ce->interval)) { char **tmp;