Skip to content

Commit

Permalink
Update stress/src/throughput.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Utkarsh Umesan Pillai <[email protected]>
  • Loading branch information
ThomsonTan and utpilla authored Jun 10, 2024
1 parent 694a27f commit 18438d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stress/src/throughput.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ where

let mut num_threads = num_cpus::get();
if args.len() >= 2 {
let arg = args[1].parse::<i32>();
let arg = args[1].parse::<usize>();

if !arg.is_ok() {
eprintln!("Invalid command line argument '{}' as number of threads. Make sure the value is a positive integer.", args[1]);
Expand Down

0 comments on commit 18438d6

Please sign in to comment.