From: Florian Forster Date: Sun, 31 Oct 2010 13:41:43 +0000 (+0100) Subject: src/utils_cache.c: Fix timeout checking. X-Git-Tag: collectd-5.0.0-beta0~19^2~12 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=16a2994a13565e3f444bb6dfddce54cbdcdf1e4a;p=collectd.git src/utils_cache.c: Fix timeout checking. --- diff --git a/src/utils_cache.c b/src/utils_cache.c index c9a5f7a3..05db70c8 100644 --- a/src/utils_cache.c +++ b/src/utils_cache.c @@ -319,7 +319,8 @@ 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) >= (timeout_g * ce->interval)) + /* FIXME: Remove macro once "ce->interval" is of type cdtime_t. */ + if ((now - ce->last_update) >= TIME_T_TO_CDTIME_T (timeout_g * ce->interval)) { char **tmp;