The hw.availpages sysctl has an unsigned long value now, fix the retrieval

to match that.
This commit is contained in:
Thomas Moestl 2002-11-01 23:26:20 +00:00
parent 3a114c5de9
commit 297cf923e7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106318
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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