X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Futils_cache.c;h=2995501aeafd020c69082eb751b068c7661740f6;hb=a2463af54cf007072aa433c5c1833958ca6050df;hp=a63c7d1c9b1cba770447a6a9080d0c6a6c7ea235;hpb=a1ae4b5afaf3207a7070b85f802b41b32c0b9a20;p=collectd.git diff --git a/src/utils_cache.c b/src/utils_cache.c index a63c7d1c..2995501a 100644 --- a/src/utils_cache.c +++ b/src/utils_cache.c @@ -303,13 +303,13 @@ int uc_check_timeout (void) sfree (key); cache_free (ce); } - else if (status == 1) /* persist */ + else if (status == 2) /* persist */ { DEBUG ("uc_check_timeout: %s is missing, sending notification.", keys[i]); ce->state = STATE_MISSING; } - else if (status == 2) /* do not persist */ + else if (status == 1) /* do not persist */ { if (ce->state == STATE_MISSING) {