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
c005315a
Commit
c005315a
authored
Jul 02, 2014
by
antirez
Browse files
latencyStartMonitor() modified to avoid warnings.
parent
e81b51ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/latency.h
View file @
c005315a
...
...
@@ -58,6 +58,8 @@ void latencyAddSample(char *event, mstime_t latency);
/* Start monitoring an event. We just set the current time. */
#define latencyStartMonitor(var) if (server.latency_monitor_threshold) { \
var = mstime(); \
} else { \
var = 0; \
}
/* End monitoring an event, compute the difference with the current time
...
...
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