From 16a2994a13565e3f444bb6dfddce54cbdcdf1e4a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 31 Oct 2010 14:41:43 +0100 Subject: [PATCH] src/utils_cache.c: Fix timeout checking. --- src/utils_cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.11.0