Code

dns plugin: Improve / remove error and debug messages.
[collectd.git] / src / utils_cache.c
index 648c54de5b13b498df24b9ac3909eb2275544844..69ea864b99dbf1ddb2f35f8e82ae4078b0c8e9e6 100644 (file)
@@ -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;