Fix units in log message of copy-on-write (#8320)

This commit is contained in:
sundb 2021-01-13 17:38:02 +08:00 committed by GitHub
parent 4f8458d8d6
commit 593cde16bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);