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(()) })