Skip to content

Commit

Permalink
fix typo in checking opts
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboud committed Apr 15, 2021
1 parent a2e1872 commit c9263cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/impl/getopts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ static void check_opts(const Options &opts){
std::cerr << "Invalid max random wait: " << opts.max_wait_ms << std::endl;
errors = true;
}
if(opts.count < 1){
std::cerr << "Invalid number of threads: " << opts.count << std::endl;
if(opts.threads < 1){
std::cerr << "Invalid number of threads: " << opts.threads << std::endl;
errors = true;
}
if(errors)
Expand Down

0 comments on commit c9263cd

Please sign in to comment.