mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 09:01:25 +00:00
Addressed review comments.
This commit is contained in:
1 parent
d78c33b864
commit
0466a1d7cf
4 files changed
+12
-8
No files matched your search
@@ -216,10 +216,13 @@ pub fn run_benchmark(
|
||||
/ (res.time_real + prepare_res.time_real + shell_spawning_time.time_real))
|
||||
as u64;
|
||||
|
||||
let count = cmp::min(
|
||||
cmp::max(runs_in_min_time, options.runs.min),
|
||||
options.runs.max
|
||||
);
|
||||
let count = {
|
||||
let min = cmp::max(runs_in_min_time, options.runs.min);
|
||||
|
||||
options.runs.max.as_ref()
|
||||
.map(|max| cmp::min(min, *max))
|
||||
.unwrap_or(min)
|
||||
};
|
||||
|
||||
let count_remaining = count - 1;
|
||||
|
||||
|
||||
Reference in new issue
Block a user