commit 7482bf1: [Minor] Jitter gc cycles and fix format string

Vsevolod Stakhov vsevolod at highsecure.ru
Fri May 10 12:35:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-05-10 13:29:00 +0100
URL: https://github.com/rspamd/rspamd/commit/7482bf1ce76169463c01e32ce60154e27a74ec78 (HEAD -> master)

[Minor] Jitter gc cycles and fix format string

---
 src/libserver/task.c | 4 ++--
 1 file 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);


More information about the Commits mailing list