From: antirez Date: Sun, 1 Nov 2009 13:14:02 +0000 (+0100) Subject: now Redis prints DB stats just after the startup without to wait a second for the... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/d8f8b666f451a2116c93ec4ff6207d9ca013855e?ds=sidebyside now Redis prints DB stats just after the startup without to wait a second for the first report --- diff --git a/redis.c b/redis.c index f0711f80..177ab9ff 100644 --- a/redis.c +++ b/redis.c @@ -1101,7 +1101,7 @@ static void initServer() { server.stat_numcommands = 0; server.stat_numconnections = 0; server.stat_starttime = time(NULL); - aeCreateTimeEvent(server.el, 1000, serverCron, NULL, NULL); + aeCreateTimeEvent(server.el, 1, serverCron, NULL, NULL); if (server.appendonly) { server.appendfd = open(server.appendfilename,O_WRONLY|O_APPEND|O_CREAT,0644);