X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/bb66fc312036e444a950df27dd7cb2e3db6b4b05..d310fbedabd3101505b694f5c25a2e48480a3c2b:/src/replication.c diff --git a/src/replication.c b/src/replication.c index 72b88977..871ce95a 100644 --- a/src/replication.c +++ b/src/replication.c @@ -3,6 +3,7 @@ #include #include #include +#include #include /* ---------------------------------- MASTER -------------------------------- */ @@ -744,7 +745,7 @@ void replicationCron(void) { * So slaves can implement an explicit timeout to masters, and will * be able to detect a link disconnection even if the TCP connection * will not actually go down. */ - if (!(server.cronloops % (server.repl_ping_slave_period*10))) { + if (!(server.cronloops % (server.repl_ping_slave_period * REDIS_HZ))) { listIter li; listNode *ln;