summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fbaf81a)
raw | patch | inline | side by side (parent: fbaf81a)
author | Florian Forster <octo@collectd.org> | |
Thu, 18 May 2017 07:23:32 +0000 (09:23 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 18 May 2017 07:23:32 +0000 (09:23 +0200) |
Fixes: #1193
src/daemon/utils_cache.c | patch | blob | history |
index fe0e083e43aabb44832acf0ef5312f41e91bf29d..a23aef88af74894c3dbd62d10ef4a2b0194228ed 100644 (file)
--- a/src/daemon/utils_cache.c
+++ b/src/daemon/utils_cache.c
} /* int uc_init */
int uc_check_timeout(void) {
- cdtime_t now = cdtime();
-
struct {
char *key;
cdtime_t time;
size_t expired_num = 0;
pthread_mutex_lock(&cache_lock);
+ cdtime_t now = cdtime();
/* Build a list of entries to be flushed */
c_avl_iterator_t *iter = c_avl_get_iterator(cache_tree);