From: 1frn10 Date: Thu, 14 May 2026 18:35:37 +0000 (+0300) Subject: Update schedutils/chrt.c X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=9967949cefb64f2facc98344acb68e282cf2b115;p=thirdparty%2Futil-linux.git Update schedutils/chrt.c Co-authored-by: Christian Goeschel Ndjomouo <162830835+cgoesche@users.noreply.github.com> --- diff --git a/schedutils/chrt.c b/schedutils/chrt.c index b586a241a..8b4881bb2 100644 --- a/schedutils/chrt.c +++ b/schedutils/chrt.c @@ -520,9 +520,7 @@ int main(int argc, char **argv) case 'U': #ifdef SCHED_FLAG_UTIL_CLAMP_MIN ctl->sched_flags |= SCHED_FLAG_UTIL_CLAMP_MIN; - ctl->util_min = strtou32_or_err(optarg, _("invalid --clamp-min value")); - if (ctl->util_min > 1024) - errx(EXIT_FAILURE, _("--clamp-min value must be in range 0-1024")); + ctl->util_min = (uint32_t) str2unum_or_err(optarg, 10, _("--clamp-min value must be in range 0-1024"), 1024); #endif break; case 'X':