aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli-hdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/hdt/hdt-cli-hdt.c')
-rw-r--r--com32/hdt/hdt-cli-hdt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/com32/hdt/hdt-cli-hdt.c b/com32/hdt/hdt-cli-hdt.c
index 86d95fe7..71d99a4f 100644
--- a/com32/hdt/hdt-cli-hdt.c
+++ b/com32/hdt/hdt-cli-hdt.c
@@ -199,6 +199,7 @@ void main_show_summary(int argc __unused, char **argv __unused,
detect_pci(hardware); /* pxe is detected in the pci */
detect_dmi(hardware);
cpu_detect(hardware);
+ detect_memory(hardware);
reset_more_printf();
clear_screen();
main_show_cpu(argc, argv, hardware);
@@ -210,10 +211,9 @@ void main_show_summary(int argc __unused, char **argv __unused,
more_printf("Bios\n");
more_printf(" Version : %s\n", hardware->dmi.bios.version);
more_printf(" Release : %s\n", hardware->dmi.bios.release_date);
-
- int argc = 1;
- char *argv[1] = { "0" };
- show_dmi_memory_modules(argc, argv, hardware);
+ more_printf("Memory Size : %lu MB (%lu KB)\n",
+ (hardware->detected_memory_size + (1 << 9)) >> 10,
+ hardware->detected_memory_size);
}
main_show_pci(argc, argv, hardware);