[Reconnoiter-devel] [reconnoiter commit] r565 - trunk/src
svn-commit at lists.omniti.com
svn-commit at lists.omniti.com
Tue Jan 27 17:37:23 EST 2009
Author: jesus
Date: 2009-01-27 17:37:23 -0500 (Tue, 27 Jan 2009)
New Revision: 565
Modified:
trunk/src/noit_check.c
Log:
more detail and change our race condition to 10ms
Modified: trunk/src/noit_check.c
===================================================================
--- trunk/src/noit_check.c 2009-01-27 22:36:24 UTC (rev 564)
+++ trunk/src/noit_check.c 2009-01-27 22:37:23 UTC (rev 565)
@@ -382,7 +382,7 @@
f = noit_check_clone(in);
if(!f) return NULL;
f->period = period;
- f->timeout = period - 1;
+ f->timeout = period - 10;
f->flags |= NP_TRANSIENT;
noit_skiplist_insert(&watchlist, f);
return f;
@@ -412,11 +412,17 @@
feedcopy = strdup(feed);
/* No error on failure -- it's already there */
if(noit_skiplist_insert(check->feeds, feedcopy) == NULL) free(feedcopy);
+ noitL(noit_debug, "check %s`%s @ %dms has %d feed(s): %s.\n",
+ check->target, check->name, check->period, check->feeds->size, feed);
}
void
noit_check_transient_remove_feed(noit_check_t *check, const char *feed) {
if(!check->feeds) return;
- if(feed) noit_skiplist_remove(check->feeds, feed, free);
+ if(feed) {
+ noitL(noit_debug, "check %s`%s @ %dms removing 1 of %d feeds: %s.\n",
+ check->target, check->name, check->period, check->feeds->size, feed);
+ noit_skiplist_remove(check->feeds, feed, free);
+ }
if(check->feeds->size == 0) {
noit_skiplist_remove(&watchlist, check, NULL);
noit_skiplist_destroy(check->feeds, free);
More information about the Reconnoiter-devel
mailing list