aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-07-07 12:14:28 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-07-07 12:14:28 +0200
commit5bfd0fcf4988799f7e4f029df627687f22e55d83 (patch)
tree5a47095e68fc9018d0163e345178f330bf4021c2 /src/libserver/cfg_utils.c
parent5c631c922ae329bdca994d0a2967eee80d830cd3 (diff)
downloadrspamd-5bfd0fcf4988799f7e4f029df627687f22e55d83.tar.gz
rspamd-5bfd0fcf4988799f7e4f029df627687f22e55d83.zip
[Feature] Reload file maps more frequently
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index dce0e0bac..7bc8994b4 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -36,6 +36,7 @@
#define DEFAULT_RLIMIT_NOFILE 2048
#define DEFAULT_RLIMIT_MAXCORE 0
#define DEFAULT_MAP_TIMEOUT 60.0 * 5
+#define DEFAULT_MAP_FILE_WATCH_MULTIPLIER 1
#define DEFAULT_MIN_WORD 4
#define DEFAULT_MAX_WORD 40
#define DEFAULT_WORDS_DECAY 200
@@ -137,6 +138,7 @@ rspamd_config_new (void)
rspamd_str_equal);
cfg->map_timeout = DEFAULT_MAP_TIMEOUT;
+ cfg->map_file_watch_multiplier = DEFAULT_MAP_FILE_WATCH_MULTIPLIER;
cfg->log_level = G_LOG_LEVEL_WARNING;
cfg->log_extended = TRUE;