trim leading whitespace regardless of (R)

This commit is contained in:
Doug MacEachern 2004-07-02 01:38:17 +00:00
parent f56206bbca
commit 1b8ad7de8f
1 changed files with 1 additions and 1 deletions

View File

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