more cpu model name fixups

This commit is contained in:
Doug MacEachern 2004-07-02 02:46:37 +00:00
parent 060bf3b805
commit 5934d4bfc4
1 changed files with 6 additions and 0 deletions

View File

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