top(1): fix MIPS
I missed where the parentheses were. Reported by: imp
This commit is contained in:
parent
5ef89dbfa7
commit
ad8ffc3fc2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333963
@ -14,20 +14,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
/*
|
||||
* We assume that if FSCALE is defined, then avenrun and ccpu are type long.
|
||||
* If your machine is an exception (mips, perhaps?) then make adjustments
|
||||
* here.
|
||||
*
|
||||
* Defined types: load_avg for load averages, pctcpu for cpu percentages.
|
||||
*/
|
||||
#if defined(__mips__) && defined(__FreeBSD__)
|
||||
# include <sys/fixpoint.h>
|
||||
# if defined(FBITS) && !defined(FSCALE)
|
||||
# define FSCALE (1 << FBITS) /* RISC/os on mips */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define FIXED_LOADAVG FSCALE
|
||||
#define FIXED_PCTCPU FSCALE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user