aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2021-09-09 16:08:44 -0700
committerChris Mason <clm@fb.com>2021-09-09 16:08:44 -0700
commite4aa540e1d709eeccbbb89686571fecca960d127 (patch)
treeb6ffa453c29d993b388e989e91c1ed217b6836ec
parent5d65fcd09f7026b2af2cacf3204b26a0b0006b9e (diff)
downloadschbench-e4aa540e1d709eeccbbb89686571fecca960d127.tar.gz
Make sure rps isn't zero in auto_rps mode.
Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r--schbench.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/schbench.c b/schbench.c
index 2d866c3..9acdc06 100644
--- a/schbench.c
+++ b/schbench.c
@@ -157,6 +157,8 @@ static void parse_options(int ac, char **av)
case 'A':
auto_rps = atoi(optarg);
warmuptime = 0;
+ if (requests_per_sec == 0)
+ requests_per_sec = 10;
break;
case 'p':
pipe_test = atoi(optarg);