diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-02-07 21:50:35 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-02-07 21:51:45 +0000 |
commit | d167318506a69a6acf9ff0c7ec65c581d5b710e1 (patch) | |
tree | bab3756cf331d87eea99904e080dcba3d72c201f /usr.bin/systat/iostat.c | |
parent | 7043ca9140d2bf4c42371e25716298d24da54cd0 (diff) | |
download | src-d167318506a69a6acf9ff0c7ec65c581d5b710e1.tar.gz src-d167318506a69a6acf9ff0c7ec65c581d5b710e1.zip |
Diffstat (limited to 'usr.bin/systat/iostat.c')
-rw-r--r-- | usr.bin/systat/iostat.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/systat/iostat.c b/usr.bin/systat/iostat.c index e3d577507e08..f6ed026c6a97 100644 --- a/usr.bin/systat/iostat.c +++ b/usr.bin/systat/iostat.c @@ -72,6 +72,7 @@ static const char sccsid[] = "@(#)iostat.c 8.1 (Berkeley) 6/6/93"; #include <err.h> #include <nlist.h> #include <paths.h> +#include <stdbool.h> #include <stdlib.h> #include <string.h> @@ -81,8 +82,8 @@ static const char sccsid[] = "@(#)iostat.c 8.1 (Berkeley) 6/6/93"; static int linesperregion; static double etime; -static int numbers = 0; /* default display bar graphs */ -static int kbpt = 0; /* default ms/seek shown */ +static bool numbers = false; /* default display bar graphs */ +static bool kbpt = false; /* default ms/seek shown */ static int barlabels(int); static void histogram(long double, int, double); @@ -377,9 +378,9 @@ cmdiostat(const char *cmd, const char *args) if (prefix(cmd, "kbpt")) kbpt = !kbpt; else if (prefix(cmd, "numbers")) - numbers = 1; + numbers = true; else if (prefix(cmd, "bars")) - numbers = 0; + numbers = false; else if (!dscmd(cmd, args, 100, &cur_dev)) return (0); wclear(wnd); |