]> git.saurik.com Git - redis.git/commitdiff
CONFIG RESETSTAT no longer resets the server uptime. Now keyspace hits/misses are...
authorantirez <antirez@gmail.com>
Fri, 15 Oct 2010 10:29:05 +0000 (12:29 +0200)
committerantirez <antirez@gmail.com>
Fri, 15 Oct 2010 10:29:05 +0000 (12:29 +0200)
src/config.c

index 48e522c5b148ab2db946c36a3ff8f211864f3440..9655917cd49058d9de960706a2fdf0fefb0f2146 100644 (file)
@@ -475,10 +475,11 @@ void configCommand(redisClient *c) {
         configGetCommand(c);
     } else if (!strcasecmp(c->argv[1]->ptr,"resetstat")) {
         if (c->argc != 2) goto badarity;
+        server.stat_keyspace_hits = 0;
+        server.stat_keyspace_misses = 0;
         server.stat_numcommands = 0;
         server.stat_numconnections = 0;
         server.stat_expiredkeys = 0;
-        server.stat_starttime = time(NULL);
         addReply(c,shared.ok);
     } else {
         addReplyError(c,