Commit 713fe0b7 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #3784 from badboy/dont-divide-by-zero

Don't divide by zero
parents 2e4f53a7 3c9b8172
...@@ -951,7 +951,7 @@ sds getMemoryDoctorReport(void) { ...@@ -951,7 +951,7 @@ sds getMemoryDoctorReport(void) {
} }
/* Slaves using more than 10 MB each? */ /* 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; big_slave_buf = 1;
num_reports++; num_reports++;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment