summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>1997-04-17 00:06:31 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>1997-04-17 00:06:31 +0000
commit823c29b4663430510be1e46e888f930ca96a9ab4 (patch)
tree87554865be78953b9974409fe0926fab9a10bb46 /libexec
parenta3c189b7f4937de67a11110b0ae604deae8ef527 (diff)
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.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rpc.rstatd/rstat_proc.c6
1 files changed, 3 insertions, 3 deletions
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