Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6f2240ae
Unverified
Commit
6f2240ae
authored
Jan 23, 2020
by
qetu3790
Committed by
GitHub
Jan 23, 2020
Browse files
Merge pull request #1 from qetu3790/qetu3790-patch-1
Fix not used constant in lru_test_mode.
parents
7ef2270e
bd60c11b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
6f2240ae
...
@@ -7735,7 +7735,7 @@ static void LRUTestMode(void) {
...
@@ -7735,7 +7735,7 @@ static void LRUTestMode(void) {
* to fill the target instance easily. */
* to fill the target instance easily. */
start_cycle = mstime();
start_cycle = mstime();
long long hits = 0, misses = 0;
long long hits = 0, misses = 0;
while(mstime() - start_cycle <
1000
) {
while(mstime() - start_cycle <
LRU_CYCLE_PERIOD
) {
/* Write cycle. */
/* Write cycle. */
for (j = 0; j < LRU_CYCLE_PIPELINE_SIZE; j++) {
for (j = 0; j < LRU_CYCLE_PIPELINE_SIZE; j++) {
char val[6];
char val[6];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment