Skip to content

Commit

Permalink
(algo): fix frame size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchanns committed May 6, 2023
1 parent 1b6eeaf commit c061ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algo/src/lru/lru_k.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl Replacer for LRUKReplacer {
Some((_, frame)) => frame,
None => {
assert!(
self.frames.len() <= self.replacer_size,
self.frames.len() < self.replacer_size,
"frame size exceeds the limit"
);
self.frames.push(Frame {
Expand Down

0 comments on commit c061ee4

Please sign in to comment.