]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodeinfo: fix physical memory size on Mac OS X
authorRyota Ozaki <ozaki.ryota@gmail.com>
Sun, 20 Oct 2013 15:14:52 +0000 (00:14 +0900)
committerDoug Goldstein <cardoe@cardoe.com>
Tue, 22 Oct 2013 04:45:28 +0000 (23:45 -0500)
commitae6b5da3d17cecfe50a75ee82ae11d075229cd9e
tree73f6237c17397425fdc95ee193881abcecf50601
parent69e047ae214d92feea6e54dfe821b1498d0004a9
nodeinfo: fix physical memory size on Mac OS X

HW_PHYSMEM is available on Mac OS X as well as FreeBSD, however,
its resulting value for Mac OS X is 32 bits. Mac OS X provides
HW_MEMSIZE that is 64 bits version of HW_PHYSMEM. We have to use it.

I tested the patch on Mac OS X 10.6.8, 10.7.4, 10.8.5 and FreeBSD 9.2.

Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
src/nodeinfo.c