1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-13 17:20:21 +02:00

Be more permissive with heap multiplier

Also if there's an error, print the right argument
This commit is contained in:
Andy Wingo 2022-05-06 15:08:24 +02:00
parent 815f206e28
commit 7461b2d5c3

View file

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