free memory

I’m looking for free memory on a node using osinfo. This returns fine unless
the memory is greater than the unsigned short that it is stored in.

Thoughts?

Doug

There are the freepmem and a totpmem members which are unsigned longs.

-Adam

Doug Rixmann <rixmannd@rdsdata.com> wrote in message
news:b47trb$gtu$1@inn.qnx.com

I’m looking for free memory on a node using osinfo. This returns fine
unless
the memory is greater than the unsigned short that it is stored in.

Thoughts?

Doug

Adam Mallory <amallory@qnx.com> wrote:

There are the freepmem and a totpmem members which are unsigned longs.

Yup – we had the same problem as you, and added new members to the
structure to handle the display of more RAM on machines.

-David

-Adam

Doug Rixmann <> rixmannd@rdsdata.com> > wrote in message
news:b47trb$gtu$> 1@inn.qnx.com> …
I’m looking for free memory on a node using osinfo. This returns fine
unless
the memory is greater than the unsigned short that it is stored in.

Thoughts?

Doug


QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.