summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2020-03-02 17:43:36 +0100
committerGitHub <noreply@github.com>2020-03-02 17:43:36 +0100
commitf88f8661ac29c054cffb795e6c371fbb2240aa0e (patch)
treea7bd106f2f407bd6fe7f641027887fa3d07a7261
parentd3e8f3fb62c719d87cf0c5571d618ac05c3a7737 (diff)
parent6f2240aefd86c7150f3b4cd3331a2f452fdca991 (diff)
downloadredis-f88f8661ac29c054cffb795e6c371fbb2240aa0e.tar.gz
Merge pull request #6804 from qetu3790/unstable
Fix not used constant in lru_test_mode.
-rw-r--r--src/redis-cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index 1d79e0db0..54898f42e 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -7737,7 +7737,7 @@ static void LRUTestMode(void) {
* to fill the target instance easily. */
start_cycle = mstime();
long long hits = 0, misses = 0;
- while(mstime() - start_cycle < 1000) {
+ while(mstime() - start_cycle < LRU_CYCLE_PERIOD) {
/* Write cycle. */
for (j = 0; j < LRU_CYCLE_PIPELINE_SIZE; j++) {
char val[6];