aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-26 16:14:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-26 16:14:52 +0100
commitdf6923330928633ef44b1a54ff4b6ef7402f88ca (patch)
tree974273f6142b1dda291e84d95054c1f73833b765 /src
parent57144a0875fd70fe92ce474fa7c0fa0788274ef1 (diff)
downloadrspamd-df6923330928633ef44b1a54ff4b6ef7402f88ca.tar.gz
rspamd-df6923330928633ef44b1a54ff4b6ef7402f88ca.zip
[Minor] Small adjustments to monitored module
Diffstat (limited to 'src')
-rw-r--r--src/libserver/monitored.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/monitored.c b/src/libserver/monitored.c
index 4560284b1..eabfad538 100644
--- a/src/libserver/monitored.c
+++ b/src/libserver/monitored.c
@@ -22,7 +22,7 @@
#include "logger.h"
#include "radix.h"
-static const gdouble default_monitoring_interval = 10.0;
+static const gdouble default_monitoring_interval = 60.0;
static const guint default_max_errors = 3;
struct rspamd_monitored_methods {
@@ -85,7 +85,7 @@ rspamd_monitored_propagate_error (struct rspamd_monitored *m,
if (m->alive) {
if (m->cur_errors < m->max_errors) {
msg_info_mon ("%s on resolving %s, %d retries left",
- error, m->url, m->cur_errors - m->max_errors);
+ error, m->url, m->max_errors - m->cur_errors);
m->cur_errors ++;
}
else {