info: re-prettify cpu info

This commit is contained in:
William Jon McCann 2011-02-14 19:48:44 -05:00
parent 642e12a10a
commit a06dd02092

View file

@ -619,6 +619,7 @@ get_cpu_info (const glibtop_sysinfo *info)
{ {
GHashTable *counts; GHashTable *counts;
GString *cpu; GString *cpu;
char *ret;
GHashTableIter iter; GHashTableIter iter;
gpointer key, value; gpointer key, value;
int i; int i;
@ -669,7 +670,10 @@ get_cpu_info (const glibtop_sysinfo *info)
g_hash_table_destroy (counts); 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 static void