summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-07-01 17:23:59 +0200
committerantirez <antirez@gmail.com>2014-07-09 19:56:43 +0200
commit34afc9103086189fb47c407aa3e0c48ec5daec14 (patch)
tree696ba3495f54cc83b4b79d9f9379c0a814fd4193
parent35a62f7408560b820b58b29dc7574dd2bcb25089 (diff)
downloadredis-34afc9103086189fb47c407aa3e0c48ec5daec14.tar.gz
Latency monitor turned off by default.
It is not a good idea to bloat the code with gettimeofday() calls if the instance is working well, and turning monitoring on at runtime is a joke.
-rw-r--r--src/redis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.h b/src/redis.h
index 1f3e901e0..3a6618e17 100644
--- a/src/redis.h
+++ b/src/redis.h
@@ -127,7 +127,7 @@ typedef long long mstime_t; /* millisecond time type. */
#define REDIS_PEER_ID_LEN (REDIS_IP_STR_LEN+32) /* Must be enough for ip:port */
#define REDIS_BINDADDR_MAX 16
#define REDIS_MIN_RESERVED_FDS 32
-#define REDIS_DEFAULT_LATENCY_MONITOR_THRESHOLD 10
+#define REDIS_DEFAULT_LATENCY_MONITOR_THRESHOLD 0
#define ACTIVE_EXPIRE_CYCLE_LOOKUPS_PER_LOOP 20 /* Loopkups per loop. */
#define ACTIVE_EXPIRE_CYCLE_FAST_DURATION 1000 /* Microseconds */