Commit e8d9a677 authored by Guido Günther's avatar Guido Günther Committed by Guido Günther

fix exceptions when sorting columns

(0006-fix-sorting-exceptions.patch)
parent 1d1ca1ee
From af8711ceeeb5e2da63f2e569b660379e72c26f85 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Thu, 2 Oct 2008 22:15:19 +0200
Subject: [PATCH] fix sorting exceptions
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
HG changeset patch
User "Guido Günther <agx@sigxcpu.org>"
Date 1222969422 -7200
Node ID d37eb13391d555c4abcee0ef13d1d484f021b655
Parent 6c334338589672a71cd45185faca46c41e17c6a9
---
src/virtManager/manager.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/virtManager/manager.py b/src/virtManager/manager.py
index 63e9ea6..ecc1480 100644
--- a/src/virtManager/manager.py
+++ b/src/virtManager/manager.py
@@ -898,10 +898,10 @@ class vmmManager(gobject.GObject):
return cmp(model.get_value(iter1, ROW_NAME), model.get_value(iter2, ROW_NAME))
def vmlist_cpu_usage_sorter(self, model, iter1, iter2):
- return cmp(model.get_value(iter1, ROW_HANDLE).cpu_time(), model.get_value(iter2, ROW_HANDLE).cpu_time())
+ return cmp(model.get_value(iter1, ROW_HANDLE).cpu_time_percentage(), model.get_value(iter2, ROW_HANDLE).cpu_time_percentage())
def vmlist_memory_usage_sorter(self, model, iter1, iter2):
- return cmp(model.get_value(iter1, ROW_HANDLE).get_memory(), model.get_value(iter2, ROW_HANDLE).get_memory())
+ return cmp(model.get_value(iter1, ROW_HANDLE).current_memory_percentage(), model.get_value(iter2, ROW_HANDLE).current_memory_percentage())
def vmlist_disk_usage_sorter(self, model, iter1, iter2):
return cmp(model.get_value(iter1, ROW_HANDLE).disk_usage(), model.get_value(iter2, ROW_HANDLE).disk_usage())
--
1.6.0.1
......@@ -3,3 +3,4 @@
0003-start-network-if-it-s-not-already-active.patch
0004-cd-chooser-fixes.patch
0005-clear-list-of-optical-devices.patch
0006-fix-sorting-exceptions.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment