diff options
author | tedu <tedu@openbsd.org> | 2004-02-15 02:45:46 +0000 |
---|---|---|
committer | tedu <tedu@openbsd.org> | 2004-02-15 02:45:46 +0000 |
commit | 35fa4c39e7e446b9e461e0899753548be778d66a (patch) | |
tree | 65098d9e27fadd6ea99b2eb7e25f05c6322f5515 /libexec/rpc.rstatd | |
parent | break in default switch cases (diff) | |
download | wireguard-openbsd-35fa4c39e7e446b9e461e0899753548be778d66a.tar.xz wireguard-openbsd-35fa4c39e7e446b9e461e0899753548be778d66a.zip |
new arg to disk_unbusy, to record separate read/write statistics.
looked at by various, testing henning@ mcbride@ dan weeks
mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
Diffstat (limited to 'libexec/rpc.rstatd')
-rw-r--r-- | libexec/rpc.rstatd/rstat_proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c index 7cb62534b70..5a085f9250a 100644 --- a/libexec/rpc.rstatd/rstat_proc.c +++ b/libexec/rpc.rstatd/rstat_proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rstat_proc.c,v 1.24 2003/07/29 18:39:23 deraadt Exp $ */ +/* $OpenBSD: rstat_proc.c,v 1.25 2004/02/15 02:45:47 tedu Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -31,7 +31,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)rpc.rstatd.c 1.1 86/09/25 Copyr 1984 Sun Micro";*/ /*static char sccsid[] = "from: @(#)rstat_proc.c 2.2 88/08/01 4.0 RPCSRC";*/ -static char rcsid[] = "$OpenBSD: rstat_proc.c,v 1.24 2003/07/29 18:39:23 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rstat_proc.c,v 1.25 2004/02/15 02:45:47 tedu Exp $"; #endif /* @@ -202,7 +202,7 @@ updatestat(void) dkreadstats(); memset(stats_all.s1.dk_xfer, '\0', sizeof(stats_all.s1.dk_xfer)); for (i = 0; i < dk_ndrive && i < DK_NDRIVE; i++) - stats_all.s1.dk_xfer[i] = cur.dk_xfer[i]; + stats_all.s1.dk_xfer[i] = cur.dk_rxfer[i] + cur.dk_wxfer[i]; for (i = 0; i < CPUSTATES; i++) stats_all.s1.cp_time[i] = cp_time[cp_xlat[i]]; |