diff options
author | phk <phk@FreeBSD.org> | 1996-11-06 19:43:10 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-11-06 19:43:10 +0000 |
commit | d9dd74baff36bb9c0928155908de17c706f61a2d (patch) | |
tree | 060339920a8a9b69bf947565b497dfb3131192c8 /usr.sbin | |
parent | cfca50b0549f24d9797c10902267f43993076a7b (diff) | |
download | FreeBSD-src-d9dd74baff36bb9c0928155908de17c706f61a2d.zip FreeBSD-src-d9dd74baff36bb9c0928155908de17c706f61a2d.tar.gz |
when you try to run iostat is fails with invalid dk_ndrive 0
Reviewed by: phk
Submitted by: John-Mark Gurney <jmg@nike.efn.org>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/iostat/iostat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c index 5d80062..c440211 100644 --- a/usr.sbin/iostat/iostat.c +++ b/usr.sbin/iostat/iostat.c @@ -184,7 +184,7 @@ main(argc, argv) if (namelist[X_DK_NDRIVE].n_type == 0) errx(1, "dk_ndrive not found in namelist"); (void)nlread(X_DK_NDRIVE, dk_ndrive); - if (dk_ndrive <= 0) + if (dk_ndrive < 0) errx(1, "invalid dk_ndrive %d\n", dk_ndrive); cur.dk_time = calloc(dk_ndrive, sizeof(long)); |