h2load: Ignore -n for timing-based mode instead of requiring -n=0
This commit is contained in:
parent
09c468a4b4
commit
15713e0b7c
|
@ -1812,7 +1812,9 @@ Options:
|
||||||
Number of requests across all clients. If it is used
|
Number of requests across all clients. If it is used
|
||||||
with --timing-script-file option, this option specifies
|
with --timing-script-file option, this option specifies
|
||||||
the number of requests each client performs rather than
|
the number of requests each client performs rather than
|
||||||
the number of requests across all clients.
|
the number of requests across all clients. This option
|
||||||
|
is ignored if timing-based benchmarking is enabled (see
|
||||||
|
--duration option).
|
||||||
Default: )"
|
Default: )"
|
||||||
<< config.nreqs << R"(
|
<< config.nreqs << R"(
|
||||||
-c, --clients=<N>
|
-c, --clients=<N>
|
||||||
|
@ -2343,8 +2345,9 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.nreqs == 0 && !config.is_timing_based_mode()) {
|
if (config.nreqs == 0 && !config.is_timing_based_mode()) {
|
||||||
std::cerr << "-n: the number of requests must be strictly greater than 0,"
|
std::cerr << "-n: the number of requests must be strictly greater than 0 "
|
||||||
<< "timing-based test is not being run." << std::endl;
|
"if timing-based test is not being run."
|
||||||
|
<< std::endl;
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2381,11 +2384,7 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.is_timing_based_mode()) {
|
if (config.is_timing_based_mode()) {
|
||||||
if (config.nreqs != 0) {
|
config.nreqs = 0;
|
||||||
std::cerr << "-n: the number of requests needs to be zero (0) for timing-"
|
|
||||||
<< "based test. Default value is 1." << std::endl;
|
|
||||||
exit(EXIT_FAILURE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.is_rate_mode()) {
|
if (config.is_rate_mode()) {
|
||||||
|
|
Loading…
Reference in New Issue