trim leading whitespace regardless of (R)
This commit is contained in:
parent
f56206bbca
commit
1b8ad7de8f
|
@ -281,8 +281,8 @@ void sigar_cpu_model_adjust(sigar_t *sigar, sigar_cpu_info_t *info)
|
|||
ptr += len;
|
||||
if (IS_CPU_R(ptr)) {
|
||||
ptr += 3; /* remove (R) */
|
||||
while (*ptr == ' ') ++ptr;
|
||||
}
|
||||
while (*ptr == ' ') ++ptr;
|
||||
}
|
||||
|
||||
strcpy(info->model, ptr);
|
||||
|
|
Loading…
Reference in New Issue