zk-phi / symon

Tiny graphical system monitor
289 stars 26 forks source link

osx bogus numbers of memory #26

Closed onemanstartup closed 8 years ago

onemanstartup commented 8 years ago

"Both usermem and physmem display useless values for systems over 2GB RAM. Both are probably bounded by a signed 32 bit integer "

source - http://superuser.com/questions/197059/mac-os-x-sysctl-get-total-and-free-memory-size

It's better to use vm_stat as said in the source.

zk-phi commented 8 years ago

Thanks. I unfortunately don't have a mac so I wonder if you (or someone else) can fix this. Probably all we need is to fix the command starting from line 472 in symon.el.

RyanKung commented 8 years ago

On my mac, the MEM is just shown as 'N/A', but I think the command is correct.

RyanKung commented 8 years ago

@onemanstartup @zk-phi Am I doing right? Please check the pull request

onemanstartup commented 8 years ago

@RyanKung is seems so. probably. I won't use symon anyway. So don't want to really

zk-phi commented 8 years ago

@RyanKung merged, thanks!