Skip to content

Commit

Permalink
Scale flex to proc count, eg on my 24 core machine it fluctuates betw…
Browse files Browse the repository at this point in the history
…een 24 and 25
  • Loading branch information
Jake-Shadle committed Feb 7, 2024
1 parent 85439a1 commit af61a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/connect/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn main() {
.parse()
.unwrap();

let max = proc_count + 5;
let max = proc_count + (proc_count as f32 * 0.05).floor() as usize;

for test in ["reuses_connection", "async_reuses_connection"] {
assert!(
Expand Down

0 comments on commit af61a1f

Please sign in to comment.