X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cache.c;h=20b12375d8ebfc159de13f520c46b89052ae1e97;hb=83077c18c3e78739c2d2d18debf99875944eaa72;hp=10e8a48e20d2e1787f8c2c6cbc4b19b230154b5e;hpb=e94e1ca83a8ac255f045259ec898f944f9118430;p=collectd.git diff --git a/src/utils_cache.c b/src/utils_cache.c index 10e8a48e..20b12375 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);