Fix not used constant in lru_test_mode.

LRU_CYCLE_PERIOD is defined,but not used.
This commit is contained in:
qetu3790 2020-01-23 17:18:07 +08:00 committed by GitHub
parent 7ef2270ee7
commit bd60c11bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];