The hw.availpages sysctl has an unsigned long value now, fix the retrieval
to match that.
This commit is contained in:
parent
3a114c5de9
commit
297cf923e7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106318
@ -40,7 +40,8 @@ struct var;
|
||||
struct varent;
|
||||
|
||||
extern fixpt_t ccpu;
|
||||
extern int cflag, eval, fscale, mempages, nlistread, rawcpu;
|
||||
extern int cflag, eval, fscale, nlistread, rawcpu;
|
||||
extern unsigned long mempages;
|
||||
extern time_t now;
|
||||
extern int sumrusage, termwidth, totwidth;
|
||||
extern VARENT *vhead;
|
||||
|
@ -48,7 +48,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
fixpt_t ccpu; /* kernel _ccpu variable */
|
||||
int nlistread; /* if nlist already read. */
|
||||
int mempages; /* number of pages of phys. memory */
|
||||
unsigned long mempages; /* number of pages of phys. memory */
|
||||
int fscale; /* kernel _fscale variable */
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user