Skip to content

Commit

Permalink
LRU simulator: fix new entry creation decr time.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jul 14, 2016
1 parent f50dc38 commit fc92c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/lru/lfu-simulation.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ int main(void) {
if (new_entry_time <= now) {
idx = 10+(rand()%10);
entries[idx].counter = COUNTER_INIT_VAL;
entries[idx].decrtime = to_16bit_minutes(start);
entries[idx].decrtime = to_16bit_minutes(time(NULL));
entries[idx].hits = 0;
entries[idx].ctime = time(NULL);
new_entry_time = now+10;
Expand Down

0 comments on commit fc92c66

Please sign in to comment.