summaryrefslogtreecommitdiff
path: root/usr.sbin/slstats
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/slstats')
-rw-r--r--usr.sbin/slstats/slstats.88
-rw-r--r--usr.sbin/slstats/slstats.c10
2 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/slstats/slstats.8 b/usr.sbin/slstats/slstats.8
index 92a8172fb7d..7d50065b79a 100644
--- a/usr.sbin/slstats/slstats.8
+++ b/usr.sbin/slstats/slstats.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: slstats.8,v 1.12 2003/06/12 12:59:53 jmc Exp $
+.\" $OpenBSD: slstats.8,v 1.13 2003/09/06 17:27:53 jmc Exp $
.\" $NetBSD: slstats.8,v 1.2.6.1 1996/06/07 01:42:24 thorpej Exp $
.\"
.\" Contributed by Van Jacobson (van@ee.lbl.gov), Dec 31, 1989.
@@ -39,7 +39,7 @@
.Sh SYNOPSIS
.Nm slstats
.Op Fl v
-.Op Fl w Ar interval
+.Op Fl i Ar interval
.Op Ar unit-number
.Sh DESCRIPTION
The
@@ -51,7 +51,7 @@ utility reports slip-related statistics for the
.Sc
interface.
If the
-.Nm unit-number
+.Ar unit-number
is unspecified, it defaults to 0.
These statistics are displayed at regular intervals.
.Pp
@@ -69,7 +69,7 @@ The options are as follows:
Display additional statistics demonstrating the efficacy of VJ header
compression and providing more explicit information on failure
distribution.
-.It Fl w
+.It Fl i
Specifies the interval between reports.
The default interval is 5 seconds.
.El
diff --git a/usr.sbin/slstats/slstats.c b/usr.sbin/slstats/slstats.c
index 7abbfbbd211..345b734048e 100644
--- a/usr.sbin/slstats/slstats.c
+++ b/usr.sbin/slstats/slstats.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slstats.c,v 1.16 2003/06/26 21:36:39 deraadt Exp $ */
+/* $OpenBSD: slstats.c,v 1.17 2003/09/06 17:27:53 jmc Exp $ */
/* $NetBSD: slstats.c,v 1.6.6.1 1996/06/07 01:42:30 thorpej Exp $ */
/*
@@ -36,7 +36,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: slstats.c,v 1.16 2003/06/26 21:36:39 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: slstats.c,v 1.17 2003/09/06 17:27:53 jmc Exp $";
#endif
#define INET
@@ -90,7 +90,7 @@ main(int argc, char *argv[])
(void)strlcpy(interface, "sl0", sizeof(interface));
- while ((ch = getopt(argc, argv, "i:M:N:v")) != -1) {
+ while ((ch = getopt(argc, argv, "i:v")) != -1) {
switch (ch) {
case 'i':
interval = atoi(optarg);
@@ -135,8 +135,8 @@ void
usage()
{
- fprintf(stderr, "usage: %s [-i interval] %s",
- __progname, "[-v] [unit]\n");
+ fprintf(stderr, "usage: %s [-v] %s",
+ __progname, "[-i interval] [unit-number]\n");
exit(1);
}