Latency monitor: command duration is in useconds. Convert.

This commit is contained in:
antirez
2014-07-01 16:09:02 +02:00
parent a57eb3272d
commit e400ae60f5
2 changed files with 3 additions and 3 deletions

View File

@ -1934,7 +1934,7 @@ void call(redisClient *c, int flags) {
if (flags & REDIS_CALL_SLOWLOG && c->cmd->proc != execCommand) {
char *latency_event = (c->cmd->flags & REDIS_CMD_FAST) ?
"fast-command" : "command";
latencyAddSampleIfNeeded(latency_event,duration);
latencyAddSampleIfNeeded(latency_event,duration/1000);
slowlogPushEntryIfNeeded(c->argv,c->argc,duration);
}
if (flags & REDIS_CALL_STATS) {