chiark
/
gitweb
/
~ian
/
innduct.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
report to debug changes in nocheck
[innduct.git]
/
backends
/
innduct.c
diff --git
a/backends/innduct.c
b/backends/innduct.c
index ac9b943064fa705a7e929c2dbf7906b60d7118bd..89e15b63f7e2929d18925d7e0df3a13d111b1e89 100644
(file)
--- a/
backends/innduct.c
+++ b/
backends/innduct.c
@@
-948,11
+948,14
@@
static Article *article_reply_check(Connection *conn, const char *response,
static void update_nocheck(int accepted) {
accept_proportion *= accept_decay;
accept_proportion += accepted;
static void update_nocheck(int accepted) {
accept_proportion *= accept_decay;
accept_proportion += accepted;
- nocheck= accept_proportion >= nocheck_thresh;
- if (nocheck && !nocheck_reported) {
+
int new_
nocheck= accept_proportion >= nocheck_thresh;
+ if (n
ew_n
ocheck && !nocheck_reported) {
notice("entering nocheck mode for the first time");
nocheck_reported= 1;
notice("entering nocheck mode for the first time");
nocheck_reported= 1;
+ } else if (new_nocheck != nockech) {
+ debug("nocheck mode %s", new_nocheck ? "start" : "stop");
}
}
+ nocheck= new_nocheck;
}
static void article_done(Connection *conn, Article *art, int whichcount) {
}
static void article_done(Connection *conn, Article *art, int whichcount) {