Fix config set slowlog-log-slower-than and condition in createLatencyReport

This commit is contained in:
WuYunlong
2018-07-13 17:53:55 +08:00
parent b3660be8f5
commit d6ba4fd56d
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ sds createLatencyReport(void) {
/* Potentially commands. */
if (!strcasecmp(event,"command")) {
if (server.slowlog_log_slower_than == 0) {
if (server.slowlog_log_slower_than < 0) {
advise_slowlog_enabled = 1;
advices++;
} else if (server.slowlog_log_slower_than/1000 >