X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cache.c;h=69ea864b99dbf1ddb2f35f8e82ae4078b0c8e9e6;hb=4dcc843a2370a6c6268249aae7185c78925c71f7;hp=648c54de5b13b498df24b9ac3909eb2275544844;hpb=179242223f25937fc528e89ef433a80d4d614611;p=collectd.git diff --git a/src/utils_cache.c b/src/utils_cache.c index 648c54de..69ea864b 100644 --- a/src/utils_cache.c +++ b/src/utils_cache.c @@ -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;