From: weingart Date: Thu, 17 Apr 1997 00:06:30 +0000 (+0000) Subject: Use the real times returned by dkreadstat(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ac708d7b9c6702f0bf9e486baf531d5348a28230;p=openbsd Use the real times returned by dkreadstat(). The use of FSHIFT and FSCALE need to be reviewed in rpc.rstatd. Does the protocol specify a value for these, or are they system dependant? Currently we pass the kernel values back unmodified, which is not what the protocol specifies. Check sys/param.h and rpcsvc/rstat.x to see. --- diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c index 8bb30249f3d..d002a9deb2b 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.4 1997/02/20 06:43:00 tholo Exp $ */ +/* $OpenBSD: rstat_proc.c,v 1.5 1997/04/17 00:06:30 weingart 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.4 1997/02/20 06:43:00 tholo Exp $"; +static char rcsid[] = "$OpenBSD: rstat_proc.c,v 1.5 1997/04/17 00:06:30 weingart Exp $"; #endif /* @@ -208,7 +208,7 @@ updatestat() double avrun[3]; struct timeval tm, btm; #ifdef BSD - int cp_time[BSD_CPUSTATES]; + long *cp_time = cur.cp_time; #endif #ifdef DEBUG