frame-benchmarking: Fix min-square for --steps=1 (#10323)

This commit is contained in:
Bastian Köcher
2021-11-23 09:39:43 +01:00
committed by GitHub
parent e5108606eb
commit 2d0e858b81
+1 -1
View File
@@ -199,7 +199,7 @@ impl Analysis {
}
pub fn min_squares_iqr(r: &Vec<BenchmarkResult>, selector: BenchmarkSelector) -> Option<Self> {
if r[0].components.is_empty() {
if r[0].components.len() <= 1 {
return Self::median_value(r, selector)
}