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];