mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 13:31:32 +00:00
Latency monitor: command duration is in useconds. Convert.
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user