mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
latencyStartMonitor() modified to avoid warnings.
This commit is contained in:
parent
53ae687d59
commit
a887af34e1
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user