* [PATCH] Fix 'nice' parameter range: should be -20 to 19, not -19 to 20.
@ 2017-10-26 21:28 Rebecca Cran
2017-10-26 21:31 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Rebecca Cran @ 2017-10-26 21:28 UTC (permalink / raw)
To: fio; +Cc: axboe, Rebecca Cran
---
options.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/options.c b/options.c
index 8ee986a7..5813a66b 100644
--- a/options.c
+++ b/options.c
@@ -3252,8 +3252,8 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
.type = FIO_OPT_INT,
.off1 = offsetof(struct thread_options, nice),
.help = "Set job CPU nice value",
- .minval = -19,
- .maxval = 20,
+ .minval = -20,
+ .maxval = 19,
.def = "0",
.interval = 1,
.category = FIO_OPT_C_GENERAL,
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix 'nice' parameter range: should be -20 to 19, not -19 to 20.
2017-10-26 21:28 [PATCH] Fix 'nice' parameter range: should be -20 to 19, not -19 to 20 Rebecca Cran
@ 2017-10-26 21:31 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2017-10-26 21:31 UTC (permalink / raw)
To: Rebecca Cran, fio
On 10/26/2017 03:28 PM, Rebecca Cran wrote:
> ---
> options.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/options.c b/options.c
> index 8ee986a7..5813a66b 100644
> --- a/options.c
> +++ b/options.c
> @@ -3252,8 +3252,8 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
> .type = FIO_OPT_INT,
> .off1 = offsetof(struct thread_options, nice),
> .help = "Set job CPU nice value",
> - .minval = -19,
> - .maxval = 20,
> + .minval = -20,
> + .maxval = 19,
> .def = "0",
> .interval = 1,
> .category = FIO_OPT_C_GENERAL,
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-26 21:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-26 21:28 [PATCH] Fix 'nice' parameter range: should be -20 to 19, not -19 to 20 Rebecca Cran
2017-10-26 21:31 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox