Skip to content

Commit

Permalink
fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-Chen222 committed Sep 27, 2024
1 parent adcf7cd commit e969d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libCacheSim/cache/eviction/pred_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static void PredClock_evict(cache_t *cache, const request_t *req) {
cache->n_promotion += 1;
obj_to_evict->predClock.check_time = params->vtime;
obj_to_evict = params->q_tail;
estimated_reuse_distance = params->vtime - obj_to_evict->predClock.last_access_vtime;
estimated_reuse_distance = (params->vtime - obj_to_evict->predClock.last_access_vtime) * params->scaler;
}

remove_obj_from_list(&params->q_head, &params->q_tail, obj_to_evict);
Expand Down

0 comments on commit e969d88

Please sign in to comment.