fix whitespace trim in cpu_model_adjust
This commit is contained in:
parent
e91faa5dbc
commit
f1899e093d
|
@ -404,7 +404,7 @@ void sigar_cpu_model_adjust(sigar_t *sigar, sigar_cpu_info_t *info)
|
||||||
len = strlen(model);
|
len = strlen(model);
|
||||||
end = &model[len-1];
|
end = &model[len-1];
|
||||||
while (*ptr == ' ') ++ptr;
|
while (*ptr == ' ') ++ptr;
|
||||||
while (*end == ' ') *--end = '\0';
|
while (*end == ' ') *end-- = '\0';
|
||||||
|
|
||||||
/* remove vendor from model name */
|
/* remove vendor from model name */
|
||||||
len = strlen(info->vendor);
|
len = strlen(info->vendor);
|
||||||
|
|
Loading…
Reference in New Issue