Skip to content

Commit

Permalink
stress-factor: up the maximum digit size to 100000000 digits
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Jan 18, 2024
1 parent fa6a1ec commit 26ee22d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stress-factor.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static int stress_set_factor_digits(const char *opt)
size_t factor_digits;

factor_digits = (size_t)stress_get_int32(opt);
stress_check_range("factor-digits", (uint64_t)factor_digits, 8, 1000000);
stress_check_range("factor-digits", (uint64_t)factor_digits, 8, 100000000);
return stress_set_setting("factor-digits", TYPE_ID_SIZE_T, &factor_digits);
}

Expand Down
2 changes: 1 addition & 1 deletion stress-ng.1
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,7 @@ an N digit value is comprised of about 0.4 \(mu N random factors,
for N > 100. The default number of digits in the value to be factorized is 10.
.TP
.B \-\-factor\-digits N
select the number of digits in the values to be factorized. Range 8 to 1000000
select the number of digits in the values to be factorized. Range 8 to 100000000
digits, default is 10.
.TP
.B \-\-factor\-ops N
Expand Down

0 comments on commit 26ee22d

Please sign in to comment.