Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
480d4af1
Unverified
Commit
480d4af1
authored
Feb 13, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Feb 13, 2018
Browse files
Merge pull request #4684 from oranagra/latency_monitor_max
fix to latency monitor reporting wrong max latency
parents
32ac4c64
8e8d957f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/latency.c
View file @
480d4af1
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment