detect_dmi(hardware);
more_printf("CPU\n");
more_printf(" Manufacturer : %s \n", hardware->cpu.vendor);
- more_printf(" Product : %s \n", del_multi_spaces(hardware->cpu.model));
+ more_printf(" Product : %s \n", hardware->cpu.model);
more_printf(" CPU Cores : %d \n", hardware->cpu.num_cores);
more_printf(" L2 Cache : %dK\n", hardware->cpu.l2_cache_size);
if (strlen(remove_spaces(hardware->cpu.model)) == 0)
strncpy(hardware->cpu.model, hardware->dmi.processor.version,
sizeof(hardware->cpu.model));
+
+ /* Some CPUs like to put many spaces in the model name
+ * That makes some weird display in console/menu
+ * Let's remove that mulitple spaces */
+ strncpy(hardware->cpu.model,del_multi_spaces(hardware->cpu.model),sizeof(hardware->cpu.model));
hardware->cpu_detection = true;
}
menu->items_count++;
snprintf(buffer, sizeof buffer, "Model : %s",
- del_multi_spaces(hardware->cpu.model));
+ hardware->cpu.model);
snprintf(statbuffer, sizeof statbuffer, "Model: %s",
- del_multi_spaces(hardware->cpu.model));
+ hardware->cpu.model);
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;