diff options
author | qetu3790 <qetu3790@163.com> | 2020-01-23 17:30:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 17:30:35 +0800 |
commit | 6f2240aefd86c7150f3b4cd3331a2f452fdca991 (patch) | |
tree | d2df87b213d97a102362efa0539d51e3e4fe4dee | |
parent | 7ef2270ee73e75b00b0c1bde40fb1df55c7ec6ff (diff) | |
parent | bd60c11bd8ca652f6cb6ecc57d0d10bc8aaa3481 (diff) | |
download | redis-6f2240aefd86c7150f3b4cd3331a2f452fdca991.tar.gz |
Merge pull request #1 from qetu3790/qetu3790-patch-1
Fix not used constant in lru_test_mode.
-rw-r--r-- | src/redis-cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c index 065c389c6..36ceb16e8 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -7735,7 +7735,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]; |