]> git.saurik.com Git - redis.git/commitdiff
now Redis prints DB stats just after the startup without to wait a second for the...
authorantirez <antirez@gmail.com>
Sun, 1 Nov 2009 13:14:02 +0000 (14:14 +0100)
committerantirez <antirez@gmail.com>
Sun, 1 Nov 2009 13:14:02 +0000 (14:14 +0100)
redis.c

diff --git a/redis.c b/redis.c
index f0711f801da70f1c3395524278c9c89890a1a672..177ab9ffe8064f8ae3ea6cc70c4f1768ca0910c1 100644 (file)
--- 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);