mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Merge pull request #4684 from oranagra/latency_monitor_max
fix to latency monitor reporting wrong max latency
This commit is contained in:
commit
480d4af1e7
@ -115,6 +115,7 @@ void latencyAddSample(char *event, mstime_t latency) {
|
||||
if (ts->samples[prev].time == now) {
|
||||
if (latency > ts->samples[prev].latency)
|
||||
ts->samples[prev].latency = latency;
|
||||
if (latency > ts->max) ts->max = latency;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user