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

This commit is contained in:
Bastian Köcher authored and GitHub committed 2021-11-23 08:39:43 +00:00
1 parent e5108606eb
commit 2d0e858b81
1 file changed
+1 -1
+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)
}