diff options
author | antirez <antirez@gmail.com> | 2014-07-02 16:53:44 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-07-02 16:53:44 +0200 |
commit | a887af34e1b0146d05b374effc27d4a9e2e11d31 (patch) | |
tree | ea2f2643dbf1444a35d9e4596c34f8a7a3fa4a19 /src/latency.h | |
parent | 53ae687d594890e5f6b93a9f2c3e5aa2199615ae (diff) | |
download | redis-a887af34e1b0146d05b374effc27d4a9e2e11d31.tar.gz |
latencyStartMonitor() modified to avoid warnings.
Diffstat (limited to 'src/latency.h')
-rw-r--r-- | src/latency.h | 2 |
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 |