From 7461b2d5c3ecd2580e964b6cff060c81dc546b67 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 6 May 2022 15:08:24 +0200 Subject: [PATCH] Be more permissive with heap multiplier Also if there's an error, print the right argument --- mt-gcbench.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mt-gcbench.c b/mt-gcbench.c index aa9177b98..80c802988 100644 --- a/mt-gcbench.c +++ b/mt-gcbench.c @@ -321,8 +321,8 @@ int main(int argc, char *argv[]) { double multiplier = atof(argv[1]); size_t nthreads = atol(argv[2]); - if (!(1.0 < multiplier && multiplier < 100)) { - fprintf(stderr, "Failed to parse heap multiplier '%s'\n", argv[2]); + if (!(0.1 < multiplier && multiplier < 100)) { + fprintf(stderr, "Failed to parse heap multiplier '%s'\n", argv[1]); return 1; } if (nthreads < 1 || nthreads > MAX_THREAD_COUNT) {