From: Vsevolod Stakhov Date: Fri, 10 May 2019 12:29:00 +0000 (+0100) Subject: [Minor] Jitter gc cycles and fix format string X-Git-Tag: 1.9.3~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7482bf1ce76169463c01e32ce60154e27a74ec78;p=rspamd.git [Minor] Jitter gc cycles and fix format string --- 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);