wingo pushed a commit to branch wip-whippet
in repository guile.

commit 7461b2d5c3ecd2580e964b6cff060c81dc546b67
Author: Andy Wingo <wi...@igalia.com>
AuthorDate: Fri May 6 15:08:24 2022 +0200

    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) {

Reply via email to