mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
fix to latency monitor reporting wrong max latency
in some cases LATENCY HISTORY reported latency that was higher than the max latency reported by LATENCY LATEST / DOCTOR
This commit is contained in:
parent
32ac4c64ba
commit
8e8d957ff8
@ -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…
Reference in New Issue
Block a user