Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b2d62665
Commit
b2d62665
authored
Jul 02, 2014
by
antirez
Browse files
latencyStartMonitor() modified to avoid warnings.
parent
cd5c13e1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/latency.h
View file @
b2d62665
...
...
@@ -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