summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e748b6f)
raw | patch | inline | side by side (parent: e748b6f)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 31 Oct 2010 13:41:43 +0000 (14:41 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 31 Oct 2010 13:41:43 +0000 (14:41 +0100) |
src/utils_cache.c | patch | blob | history |
diff --git a/src/utils_cache.c b/src/utils_cache.c
index c9a5f7a3c9342a4daed748315849cffcf2e6aa37..05db70c888c220a897d52d417146e546a38b1cd0 100644 (file)
--- a/src/utils_cache.c
+++ b/src/utils_cache.c
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;