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.
-/* $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
#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
/*
double avrun[3];
struct timeval tm, btm;
#ifdef BSD
- int cp_time[BSD_CPUSTATES];
+ long *cp_time = cur.cp_time;
#endif
#ifdef DEBUG