diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2004-06-13 08:19:28 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2004-06-13 08:19:28 +0000 |
commit | 16bcad422c766584b5322e8a4f9c3bc7f4164354 (patch) | |
tree | 024a4ab14484cbca47d60cce65e1c2c6582f7964 | |
parent | 3881c09b51d60a84ad154ba50a5f3803dd54ad45 (diff) | |
download | libgtop-16bcad422c766584b5322e8a4f9c3bc7f4164354.tar.gz |
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
-rw-r--r-- | sysdeps/linux/ChangeLog | 4 | ||||
-rw-r--r-- | 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 <tazforever@dlfp.org> 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); } |