aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-menu-summary.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/hdt/hdt-menu-summary.c')
-rw-r--r--com32/hdt/hdt-menu-summary.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/com32/hdt/hdt-menu-summary.c b/com32/hdt/hdt-menu-summary.c
index d02f3c30..b9395559 100644
--- a/com32/hdt/hdt-menu-summary.c
+++ b/com32/hdt/hdt-menu-summary.c
@@ -54,8 +54,12 @@ void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware)
char features[SUBMENULEN + 1];
memset(features, 0, sizeof(features));
- sprintf(features, "%d cores, %dK L2 Cache", hardware->cpu.num_cores,
- hardware->cpu.l2_cache_size);
+ if (hardware->dmi.processor.thread_count != 0)
+ sprintf(buffer, ", %d thread", hardware->dmi.processor.thread_count);
+ else
+ buffer[0] = 0x00;
+ sprintf(features, "%d core%s, %dK L2 Cache", hardware->cpu.num_cores,
+ buffer, hardware->cpu.l2_cache_size);
if (hardware->cpu.flags.lm)
strcat(features, ", 64bit");
else