aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-menu-processor.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/hdt/hdt-menu-processor.c')
-rw-r--r--com32/hdt/hdt-menu-processor.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/com32/hdt/hdt-menu-processor.c b/com32/hdt/hdt-menu-processor.c
index abb9a1af..f303eb6a 100644
--- a/com32/hdt/hdt-menu-processor.c
+++ b/com32/hdt/hdt-menu-processor.c
@@ -63,10 +63,8 @@ void compute_processor(struct s_my_menu *menu, struct s_hardware *hardware)
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;
- snprintf(buffer, sizeof buffer, "Model : %s",
- hardware->cpu.model);
- snprintf(statbuffer, sizeof statbuffer, "Model: %s",
- hardware->cpu.model);
+ snprintf(buffer, sizeof buffer, "Model : %s", hardware->cpu.model);
+ snprintf(statbuffer, sizeof statbuffer, "Model: %s", hardware->cpu.model);
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;
@@ -141,6 +139,17 @@ void compute_processor(struct s_my_menu *menu, struct s_hardware *hardware)
hardware->dmi.processor.upgrade);
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;
+
+ snprintf(buffer, sizeof buffer, "Voltage : %d.%02d",
+ hardware->dmi.processor.voltage_mv / 1000,
+ hardware->dmi.processor.voltage_mv -
+ ((hardware->dmi.processor.voltage_mv / 1000) * 1000));
+ snprintf(statbuffer, sizeof statbuffer, "Voltage (V) : %d.%02d",
+ hardware->dmi.processor.voltage_mv / 1000,
+ hardware->dmi.processor.voltage_mv -
+ ((hardware->dmi.processor.voltage_mv / 1000) * 1000));
+ add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
+ menu->items_count++;
}
if (hardware->cpu.flags.smp) {