From c791b2ed46507d733213b65da080197ad3ae3d3c Mon Sep 17 00:00:00 2001 From: Tomer Filiba Date: Sun, 18 Aug 2024 09:51:23 +0300 Subject: [PATCH] Rename CoarseHistogram.xlarge to over32k --- src/store.rs | 4 ++-- tests/test_logic.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store.rs b/src/store.rs index 2b862c9..6b42f36 100644 --- a/src/store.rs +++ b/src/store.rs @@ -91,7 +91,7 @@ pub struct CoarseHistogram { pub under4k: usize, pub under16k: usize, pub under32k: usize, - pub xlarge: usize, + pub over32k: usize, } impl SizeHistogram { @@ -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; } diff --git a/tests/test_logic.rs b/tests/test_logic.rs index 18423d2..74b2310 100644 --- a/tests/test_logic.rs +++ b/tests/test_logic.rs @@ -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(()) })