diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-20 08:18:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-20 08:18:10 +0100 |
commit | b2e00622655fc48d0f3d2db9bc784441c994602b (patch) | |
tree | 8550c34a42cb904a2a9258086dac54cfe6cd587c /src/libserver/monitored.c | |
parent | 5d37e69a60b836818823a6c43cb4269d10d82094 (diff) | |
download | rspamd-b2e00622655fc48d0f3d2db9bc784441c994602b.tar.gz rspamd-b2e00622655fc48d0f3d2db9bc784441c994602b.zip |
[Feature] Allow to configure monitored
Diffstat (limited to 'src/libserver/monitored.c')
-rw-r--r-- | src/libserver/monitored.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/monitored.c b/src/libserver/monitored.c index 01979b11e..cc11183b2 100644 --- a/src/libserver/monitored.c +++ b/src/libserver/monitored.c @@ -414,6 +414,10 @@ rspamd_monitored_ctx_config (struct rspamd_monitored_ctx *ctx, ctx->change_cb = change_cb; ctx->ud = ud; + if (cfg->monitored_interval != 0) { + ctx->monitoring_interval = cfg->monitored_interval; + } + /* Start all events */ for (i = 0; i < ctx->elts->len; i ++) { m = g_ptr_array_index (ctx->elts, i); |