mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 04:11:07 +00:00
frame-benchmarking: Fix min-square for --steps=1 (#10323)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user