Skip to content

Commit

Permalink
Rename CoarseHistogram.xlarge to over32k
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerfiliba committed Aug 18, 2024
1 parent 6732a90 commit c791b2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub struct CoarseHistogram {
pub under4k: usize,
pub under16k: usize,
pub under32k: usize,
pub xlarge: usize,
pub over32k: usize,
}

impl SizeHistogram {
Expand All @@ -115,7 +115,7 @@ impl SizeHistogram {
1025..=4096 => &mut coarse.under4k,
4097..=16384 => &mut coarse.under16k,
16385..=32768 => &mut coarse.under32k,
_ => &mut coarse.xlarge,
_ => &mut coarse.over32k,
};
*which += c;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_logic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ fn test_histogram() -> Result<()> {
let coarse = hist.to_coarse();
assert_eq!(coarse.under512, 3);
assert_eq!(coarse.under16k, 2);
assert_eq!(coarse.xlarge, 2);
assert_eq!(coarse.over32k, 2);

Ok(())
})
Expand Down

0 comments on commit c791b2e

Please sign in to comment.