[gnome-boxes] libvirt: Fix current memory size display in properties
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt: Fix current memory size display in properties
- Date: Fri, 22 Feb 2013 15:04:10 +0000 (UTC)
commit c7e63f3a9709504e7c0ba7dce640de5a30ab614e
Author: Christophe Fergeau <cfergeau redhat com>
Date: Fri Feb 22 10:58:26 2013 +0100
libvirt: Fix current memory size display in properties
The memory size returned by LibvirtGConfig is in KiB.
https://bugzilla.gnome.org/show_bug.cgi?id=694430
src/libvirt-machine-properties.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 3169176..f7560fd 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -385,7 +385,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
var property = add_size_property (ref list,
_("Memory"),
- machine.domain_config.memory,
+ machine.domain_config.memory * Osinfo.KIBIBYTES,
64 * Osinfo.MEBIBYTES,
max_ram * Osinfo.KIBIBYTES,
64 * Osinfo.MEBIBYTES,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]