From 35fa4c39e7e446b9e461e0899753548be778d66a Mon Sep 17 00:00:00 2001 From: tedu Date: Sun, 15 Feb 2004 02:45:46 +0000 Subject: 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 --- libexec/rpc.rstatd/rstat_proc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libexec/rpc.rstatd') 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]]; -- cgit v1.2.3-59-g8ed1b