diff options
author | Erwan Velu <erwanaliasr1@gmail.com> | 2011-01-30 15:06:40 +0100 |
---|---|---|
committer | Erwan Velu <erwanaliasr1@gmail.com> | 2011-01-30 15:06:40 +0100 |
commit | 98d58026c4bf38e42adcfbd5f92da29fb582d41a (patch) | |
tree | f6b81269e20a166e7c37917e2f51e905120d9b3d /com32/hdt/hdt-menu-summary.c | |
parent | 7444a40f48c3f70a34ddb9a95945a5d709058038 (diff) | |
download | syslinux-98d58026c4bf38e42adcfbd5f92da29fb582d41a.tar.gz |
hdt: Improving CPU displayhdt/0.4.0-beta1
Diffstat (limited to 'com32/hdt/hdt-menu-summary.c')
-rw-r--r-- | com32/hdt/hdt-menu-summary.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/com32/hdt/hdt-menu-summary.c b/com32/hdt/hdt-menu-summary.c index e9d56caf..d02f3c30 100644 --- a/com32/hdt/hdt-menu-summary.c +++ b/com32/hdt/hdt-menu-summary.c @@ -34,7 +34,8 @@ void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware) char buffer[SUBMENULEN + 1]; char statbuffer[STATLEN + 1]; - menu->menu = add_menu(" Summary ", -1); + snprintf(buffer, sizeof(buffer), " Summary (%d CPU) ", hardware->physical_cpu_count); + menu->menu = add_menu(buffer, -1); menu->items_count = 0; set_menu_pos(SUBMENU_Y, SUBMENU_X); @@ -60,9 +61,9 @@ void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware) else strcat(features, ", 32bit"); if (hardware->cpu.flags.smp) - strcat(features, ", SMP "); + strcat(features, ", SMP"); if (hardware->cpu.flags.vmx || hardware->cpu.flags.svm) - strcat(features, ", HwVIRT "); + strcat(features, ", HwVIRT"); snprintf(buffer, sizeof buffer, "%s", features); snprintf(statbuffer, sizeof statbuffer, "Features : %s", features); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); |