]> xenbits.xensource.com Git - libvirt.git/commit
nodeinfo: make nodeGetInfo() call nodeGetMemory for memory size
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 13 Apr 2016 16:28:10 +0000 (17:28 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 9 Jun 2016 17:03:37 +0000 (18:03 +0100)
commit912813de27a5c9bd614fe97a1b80dd10fefc3dfa
tree88d2b9e7e01f2d2cd253aaf07197de21ad719753
parent08ea852c255a792b85ca89223a31e128a2bf2e21
nodeinfo: make nodeGetInfo() call nodeGetMemory for memory size

The nodeGetInfo() method currently has its own code for getting
memory size in KB, that basically just re-invents what nodeGetMemory
already does. Remove it and just call nodeGetMemory, converting its
result from bytes to KB, allowing removal of more platform specific
conditional code.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/nodeinfo.c