]> git.saurik.com Git - redis.git/blobdiff - src/slowlog.c
More redis.conf self-documentation. Now even queries that took exactly server.slow_lo...
[redis.git] / src / slowlog.c
index a257a17bf7c2dd5d2006303b546e5901bab6f998..17edf6159f68d5a7886d1d36330106dece4acfb6 100644 (file)
@@ -55,7 +55,7 @@ void slowlogInit(void) {
  * configured max length. */
 void slowlogPushEntryIfNeeded(robj **argv, int argc, long long duration) {
     if (server.slowlog_log_slower_than < 0) return; /* Slowlog disabled */
-    if (duration > server.slowlog_log_slower_than)
+    if (duration >= server.slowlog_log_slower_than)
         listAddNodeHead(server.slowlog,slowlogCreateEntry(argv,argc,duration));
 
     /* Remove old entries if needed. */