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