aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-10 13:29:00 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-10 13:29:00 +0100
commit7482bf1ce76169463c01e32ce60154e27a74ec78 (patch)
tree8b48088f2d247fe29fc1064c5b40861a5d78fe5f /src
parentf78dbc5820a58bde1dab77627a78319ea597e16a (diff)
downloadrspamd-7482bf1ce76169463c01e32ce60154e27a74ec78.tar.gz
rspamd-7482bf1ce76169463c01e32ce60154e27a74ec78.zip
[Minor] Jitter gc cycles and fix format string
Diffstat (limited to 'src')
-rw-r--r--src/libserver/task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index b7e353823..b6f67886d 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -377,11 +377,11 @@ rspamd_task_free (struct rspamd_task *task)
msg_notice_task ("perform full gc cycle; memory stats: "
"%z allocated, %z active, %z metadata, %z resident, %z mapped;"
- " lua memory: %d kb -> %d kb; %f ticks for gc iter",
+ " lua memory: %z kb -> %d kb; %f ticks for gc iter",
allocated, active, metadata, resident, mapped,
old_lua_mem, lua_gc (task->cfg->lua_state, LUA_GCCOUNT, 0),
t2 - t1);
- free_iters = 0;
+ free_iters = rspamd_time_jitter (0, (gdouble)free_iters_limit / 2);
}
REF_RELEASE (task->cfg);