Commit c005315a authored by antirez's avatar antirez
Browse files

latencyStartMonitor() modified to avoid warnings.

parent e81b51ad
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment