diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2012-01-07 17:16:23 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2012-01-07 17:16:23 -0200 |
commit | b58f976580d40ef6dfa33cc111253e3c549ca049 (patch) | |
tree | 303057e333e5fdf2896c6bd24b4febdba47196e5 /modules/devices.c | |
parent | 6712c6baf3104853707a3ba73f57864063452ae5 (diff) |
Display memory size in the new computer summary screen
Diffstat (limited to 'modules/devices.c')
-rw-r--r-- | modules/devices.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/devices.c b/modules/devices.c index 57f3aa23..0fd797c0 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -68,6 +68,8 @@ void scan_spd(gboolean reload); #endif void scan_device_resources(gboolean reload); +gchar *hi_more_info(gchar *entry); + static ModuleEntry entries[] = { {"Processor", "processor.png", callback_processors, scan_processors, MODULE_FLAG_NONE}, {"Memory", "memory.png", callback_memory, scan_memory, MODULE_FLAG_NONE}, @@ -174,8 +176,8 @@ gchar *get_pci_device_description(gchar *pci_id) gchar *get_memory_total(void) { - /* FIXME */ - return g_strdup("0.0"); + scan_memory(FALSE); + return hi_more_info("Total Memory"); } ShellModuleMethod *hi_exported_methods(void) |