info: re-prettify cpu info
This commit is contained in:
parent
642e12a10a
commit
a06dd02092
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue