h2load: Use 1 thread if the number of concurrent client is 1

This commit is contained in:
Tatsuhiro Tsujikawa 2014-06-06 23:11:08 +09:00
parent 7cb28e88e2
commit fcec996925
1 changed files with 4 additions and 0 deletions

View File

@ -890,6 +890,10 @@ int main(int argc, char **argv)
resolve_host(); resolve_host();
if(config.nclients == 1) {
config.nthreads = 1;
}
size_t nreqs_per_thread = config.nreqs / config.nthreads; size_t nreqs_per_thread = config.nreqs / config.nthreads;
ssize_t nreqs_rem = config.nreqs % config.nthreads; ssize_t nreqs_rem = config.nreqs % config.nthreads;