summaryrefslogtreecommitdiff
path: root/src/latency.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/latency.h')
-rw-r--r--src/latency.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/latency.h b/src/latency.h
index 10f9e56f7..1d21d5182 100644
--- a/src/latency.h
+++ b/src/latency.h
@@ -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