h2load: Use 1 thread if the number of concurrent client is 1
This commit is contained in:
parent
7cb28e88e2
commit
fcec996925
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue