From 5934d4bfc4bfb8560e6749205b657a3e6a431328 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 2 Jul 2004 02:46:37 +0000 Subject: [PATCH] more cpu model name fixups --- src/sigar_util.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sigar_util.c b/src/sigar_util.c index 903ec51a..9c283bef 100644 --- a/src/sigar_util.c +++ b/src/sigar_util.c @@ -296,6 +296,8 @@ static const cpu_model_str_t cpu_models[] = { CPU_MODEL_ENT("Opteron"), CPU_MODEL_ENT("Athlon"), CPU_MODEL_ENT("Duron"), + CPU_MODEL_ENT_R("K6(tm)-III", "K6 III"), + CPU_MODEL_ENT_R("K6(tm) 3D+", "K6 3D+"), { NULL } }; @@ -323,6 +325,10 @@ void sigar_cpu_model_adjust(sigar_t *sigar, sigar_cpu_info_t *info) while (*ptr == ' ') ++ptr; } + if (*ptr == '-') { + ++ptr; /* e.g. was AMD-K6... */ + } + for (i=0; cpu_models[i].name; i++) { const cpu_model_str_t *cpu_model = &cpu_models[i];