diff options
author | William Perron <hey@wperron.io> | 2021-01-18 05:00:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 05:00:51 -0500 |
commit | 18150b3a78cd02c7c68d4dfced036fd812a17536 (patch) | |
tree | c4d5d1da1162e6a16c2a47233db22be21f0f7a0c /cli | |
parent | 2077864a8deca240fbbd43758e30977cc881e110 (diff) |
bench: fix off-by-one error in thread_count (#9145)
Diffstat (limited to 'cli')
-rw-r--r-- | cli/bench/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/bench/main.rs b/cli/bench/main.rs index 0443e4f0c..d3f00ee2c 100644 --- a/cli/bench/main.rs +++ b/cli/bench/main.rs @@ -340,7 +340,7 @@ fn run_strace_benchmarks( file.as_file_mut().read_to_string(&mut output)?; let strace_result = test_util::parse_strace_output(&output); - let clone = strace_result.get("clone").map(|d| d.calls).unwrap_or(0); + let clone = strace_result.get("clone").map(|d| d.calls).unwrap_or(0) + 1; let total = strace_result.get("total").unwrap().calls; thread_count.insert(name.to_string(), clone); syscall_count.insert(name.to_string(), total); |