提交 c005315a 编写于 作者: A antirez

latencyStartMonitor() modified to avoid warnings.

上级 e81b51ad
...@@ -58,6 +58,8 @@ void latencyAddSample(char *event, mstime_t latency); ...@@ -58,6 +58,8 @@ void latencyAddSample(char *event, mstime_t latency);
/* Start monitoring an event. We just set the current time. */ /* Start monitoring an event. We just set the current time. */
#define latencyStartMonitor(var) if (server.latency_monitor_threshold) { \ #define latencyStartMonitor(var) if (server.latency_monitor_threshold) { \
var = mstime(); \ var = mstime(); \
} else { \
var = 0; \
} }
/* End monitoring an event, compute the difference with the current time /* End monitoring an event, compute the difference with the current time
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册