diff options
Diffstat (limited to 'procps/iostat.c')
-rw-r--r-- | procps/iostat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/iostat.c b/procps/iostat.c index 573419e1c..8641c2391 100644 --- a/procps/iostat.c +++ b/procps/iostat.c | |||
@@ -539,12 +539,12 @@ int iostat_main(int argc, char **argv) | |||
539 | 539 | ||
540 | if (*argv) { | 540 | if (*argv) { |
541 | /* Get interval */ | 541 | /* Get interval */ |
542 | interval = xatoi_u(*argv); | 542 | interval = xatoi_positive(*argv); |
543 | count = interval ? -1 : 1; | 543 | count = interval ? -1 : 1; |
544 | argv++; | 544 | argv++; |
545 | if (*argv) | 545 | if (*argv) |
546 | /* Get count value */ | 546 | /* Get count value */ |
547 | count = xatoi_u(*argv); | 547 | count = xatoi_positive(*argv); |
548 | } | 548 | } |
549 | 549 | ||
550 | /* Allocate space for device stats */ | 550 | /* Allocate space for device stats */ |