Skip to content

Commit

Permalink
CONFIG RESETSTAT no longer resets the server uptime. Now keyspace hit…
Browse files Browse the repository at this point in the history
…s/misses are reset as well.
  • Loading branch information
antirez committed Oct 15, 2010
1 parent 95506e4 commit 9f8ded8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9f8ded8

Please sign in to comment.