diff --git a/src/object.c b/src/object.c index 90df9e38..08c9ad95 100644 --- a/src/object.c +++ b/src/object.c @@ -951,7 +951,7 @@ sds getMemoryDoctorReport(void) { } /* Slaves using more than 10 MB each? */ - if (mh->clients_slaves / numslaves > (1024*1024*10)) { + if (numslaves > 0 && mh->clients_slaves / numslaves > (1024*1024*10)) { big_slave_buf = 1; num_reports++; }