mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +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. */
|
||||
#define latencyStartMonitor(var) if (server.latency_monitor_threshold) { \
|
||||
var = mstime(); \
|
||||
} else { \
|
||||
var = 0; \
|
||||
}
|
||||
|
||||
/* End monitoring an event, compute the difference with the current time
|
||||
|
Loading…
x
Reference in New Issue
Block a user