You need to sign in or sign up before continuing.
Commit d8f8b666 authored by antirez's avatar antirez
Browse files

now Redis prints DB stats just after the startup without to wait a second for the first report

parent 33ed1a42
...@@ -1101,7 +1101,7 @@ static void initServer() { ...@@ -1101,7 +1101,7 @@ static void initServer() {
server.stat_numcommands = 0; server.stat_numcommands = 0;
server.stat_numconnections = 0; server.stat_numconnections = 0;
server.stat_starttime = time(NULL); server.stat_starttime = time(NULL);
aeCreateTimeEvent(server.el, 1000, serverCron, NULL, NULL); aeCreateTimeEvent(server.el, 1, serverCron, NULL, NULL);
if (server.appendonly) { if (server.appendonly) {
server.appendfd = open(server.appendfilename,O_WRONLY|O_APPEND|O_CREAT,0644); server.appendfd = open(server.appendfilename,O_WRONLY|O_APPEND|O_CREAT,0644);
......
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