From 16bcad422c766584b5322e8a4f9c3bc7f4164354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Sun, 13 Jun 2004 08:19:28 +0000 Subject: [PATCH] Re-implemented. Fixed segfault on SMP. Stores keys in cpuinfo->labels * sysinfo.c: (init_sysinfo): Re-implemented. Fixed segfault on SMP. Stores keys in cpuinfo->labels --- sysdeps/linux/ChangeLog | 4 ++-- sysdeps/linux/sysinfo.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog index 361252a4..13d6cb54 100644 --- a/sysdeps/linux/ChangeLog +++ b/sysdeps/linux/ChangeLog @@ -5,8 +5,8 @@ (proc_file_to_buffer): Uninlined. * sysinfo.c: (init_sysinfo): Re-implemented. - - * sysinfo.c: (init_sysinfo): Fixed segfault on SMP. + Fixed segfault on SMP. + Stores keys in cpuinfo->labels. 2004-06-12 BenoƮt Dejean diff --git a/sysdeps/linux/sysinfo.c b/sysdeps/linux/sysinfo.c index c97759d0..d74b5fa1 100644 --- a/sysdeps/linux/sysinfo.c +++ b/sysdeps/linux/sysinfo.c @@ -91,6 +91,7 @@ init_sysinfo (glibtop *server) gchar * const key = g_strstrip( *p ); gchar * const value = g_strstrip( *(p+1) ); + g_ptr_array_add(cpuinfo->labels, key); g_hash_table_insert(cpuinfo->values, key, value); }