[gnome-control-center] info: re-prettify cpu info
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] info: re-prettify cpu info
- Date: Tue, 15 Feb 2011 00:49:07 +0000 (UTC)
commit a06dd020922bf760865f84600a653d437fa969c2
Author: William Jon McCann <jmccann redhat com>
Date: Mon Feb 14 19:48:44 2011 -0500
info: re-prettify cpu info
panels/info/cc-info-panel.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index b91fabe..f507ed2 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -619,6 +619,7 @@ get_cpu_info (const glibtop_sysinfo *info)
{
GHashTable *counts;
GString *cpu;
+ char *ret;
GHashTableIter iter;
gpointer key, value;
int i;
@@ -669,7 +670,10 @@ get_cpu_info (const glibtop_sysinfo *info)
g_hash_table_destroy (counts);
- return g_string_free (cpu, FALSE);
+ ret = prettify_info (cpu->str);
+ g_string_free (cpu, TRUE);
+
+ return ret;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]