summaryrefslogtreecommitdiff
path: root/modules/devices.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-07-12 00:46:38 -0500
committerLeandro Pereira <leandro@hardinfo.org>2017-07-12 19:38:41 -0700
commitfb2910e7a2931ff84c8f3f859e76623a295275f8 (patch)
tree1a408b35be2ffd1abc906c95824ab673945bc795 /modules/devices.c
parent3824849f670ea9249a35a72b1f8f475e5f3fdea3 (diff)
Fix Computer -> Summary -> RAM for non-English
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices.c')
-rw-r--r--modules/devices.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/devices.c b/modules/devices.c
index 0cdb9a0d..01021a62 100644
--- a/modules/devices.c
+++ b/modules/devices.c
@@ -177,22 +177,22 @@ gchar *get_processor_frequency(void)
gchar *get_pci_device_description(gchar *pci_id)
{
gchar *description;
-
+
if (!_pci_devices) {
scan_pci(FALSE);
}
-
+
if ((description = g_hash_table_lookup(_pci_devices, pci_id))) {
return g_strdup(description);
}
-
+
return NULL;
}
gchar *get_memory_total(void)
{
scan_memory(FALSE);
- return moreinfo_lookup ("DEV:Total Memory"); //hi_more_info(N_("Total Memory"));
+ return moreinfo_lookup ("DEV:MemTotal");
}
/* information table from: http://elinux.org/RPi_HardwareHistory */
@@ -296,7 +296,7 @@ gchar *get_motherboard(void)
board_name = moreinfo_lookup("DEV:DMI:Board:Name");
board_vendor = moreinfo_lookup("DEV:DMI:Board:Vendor");
-
+
if (board_name && board_vendor && *board_name && *board_vendor)
return g_strconcat(board_vendor, " ", board_name, NULL);
else if (board_name && *board_name)
@@ -344,7 +344,7 @@ ShellModuleMethod *hi_exported_methods(void)
gchar *hi_more_info(gchar * entry)
{
gchar *info = moreinfo_lookup_with_prefix("DEV", entry);
-
+
if (info)
return g_strdup(info);
@@ -574,7 +574,7 @@ void hi_module_init(void)
.save_to = "cpuflags.conf",
.get_data = NULL
};
-
+
sync_manager_add_entry(&se);
}
#endif /* defined(ARCH_x86) */