[gnome-boxes] Add memory units to diagnostics log



commit 35cf6c05ba548e1a85c4a84432ac8a7d35005b53
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Fri Feb 22 10:59:26 2013 +0100

    Add memory units to diagnostics log
    
    The troubleshooting log that can be obtained through a box properties
    shows the current/max memory for the box. As this amount is in KiB,
    this commit adds a unit to this log to make this explicit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694430

 src/libvirt-machine-properties.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index f7560fd..740849c 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -64,8 +64,8 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
         try {
             var info = machine.domain.get_info ();
             builder.append_printf ("Cpu time: %"+uint64.FORMAT_MODIFIER+"d\n", info.cpuTime);
-            builder.append_printf ("Memory: %"+uint64.FORMAT_MODIFIER+"d\n", info.memory);
-            builder.append_printf ("Max memory: %"+uint64.FORMAT_MODIFIER+"d\n", info.maxMem);
+            builder.append_printf ("Memory: %"+uint64.FORMAT_MODIFIER+"d KiB\n", info.memory);
+            builder.append_printf ("Max memory: %"+uint64.FORMAT_MODIFIER+"d KiB\n", info.maxMem);
             builder.append_printf ("CPUs: %d\n", info.nrVirtCpu);
             builder.append_printf ("State: %s\n", info.state.to_string ());
         } catch (GLib.Error e) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]