From 593cde16bcac64fb52a36500377574e981c580f6 Mon Sep 17 00:00:00 2001 From: sundb Date: Wed, 13 Jan 2021 17:38:02 +0800 Subject: [PATCH] Fix units in log message of copy-on-write (#8320) --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 0551eb3e4..90b9045ea 100644 --- a/src/server.c +++ b/src/server.c @@ -5533,7 +5533,7 @@ void sendChildCOWInfo(int ptype, int on_exit, char *pname) { if (private_dirty) { serverLog(on_exit ? LL_NOTICE : LL_VERBOSE, "%s: %zu MB of memory used by copy-on-write", - pname, private_dirty); + pname, private_dirty/(1024*1024)); } sendChildInfo(ptype, on_exit, private_dirty);