diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-12-17 20:58:40 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-12-17 20:58:40 +0000 |
commit | f1d06c649c9d273329dc516f1b24f4a25d8036ff (patch) | |
tree | 76d16d07294155a19c0f96d774f6e53de547c682 /usr.bin | |
parent | e5195c4cdd2f7fc5fb907c786bd388e1806ba277 (diff) |
- add -w to options description
- document default refresh interval
- sync usage() with SYNOPSIS
inspired by PR 3608;
ok deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/systat/main.c | 7 | ||||
-rw-r--r-- | usr.bin/systat/systat.1 | 15 |
2 files changed, 14 insertions, 8 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c index 119bd6af90c..51c76414b93 100644 --- a/usr.bin/systat/main.c +++ b/usr.bin/systat/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.27 2003/12/17 20:22:50 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.28 2003/12/17 20:58:39 jmc Exp $ */ /* $NetBSD: main.c,v 1.8 1996/05/10 23:16:36 thorpej Exp $ */ /*- @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: main.c,v 1.27 2003/12/17 20:22:50 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.28 2003/12/17 20:58:39 jmc Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -193,8 +193,7 @@ gethz(void) static void usage(void) { - fprintf(stderr, - "usage: systat [-w wait] [iostat|mbufs|netstat|pigs|swap|vmstat]\n"); + fprintf(stderr, "usage: systat [-w wait] [display] [refresh-interval]\n"); exit(1); } diff --git a/usr.bin/systat/systat.1 b/usr.bin/systat/systat.1 index e338626fcbc..d43a9ab9b9f 100644 --- a/usr.bin/systat/systat.1 +++ b/usr.bin/systat/systat.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: systat.1,v 1.30 2003/09/02 18:50:06 jmc Exp $ +.\" $OpenBSD: systat.1,v 1.31 2003/12/17 20:58:39 jmc Exp $ .\" $NetBSD: systat.1,v 1.6 1996/05/10 23:16:39 thorpej Exp $ .\" .\" Copyright (c) 1985, 1990, 1993 @@ -81,7 +81,13 @@ input line is passed to a per-display command interpreter. This allows each display to have certain display-specific commands. .Pp The options are as follows: -.Bl -tag -width Ds +.Bl -tag -width "refresh-interval" +.It Fl w Ar wait +Specifies the screen refresh time interval in seconds. +This option is overridden by +.Ar refresh-interval , +if given. +The default interval is 5 seconds. .It Ar display The .Ar display @@ -100,10 +106,11 @@ The .Ar refresh-interval specifies the screen refresh time interval in seconds. This is provided for backwards compatibility, and overrides the -.Ar refresh-interval -specified with the +.Ar wait +interval specified with the .Fl w flag. +The default interval is 5 seconds. .El .Pp Certain characters cause immediate action by |