aboutsummaryrefslogtreecommitdiff
path: root/modules/computer.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2020-06-06 16:19:39 -0700
committerLeandro Pereira <leandro@hardinfo.org>2020-06-06 18:46:58 -0700
commit25e537d2d9aa17a3558a3b6f4624ccfc772c26ab (patch)
treec7f94e19f04c8b07241721351f463466151c1d60 /modules/computer.c
parentc5cb494c9b511164fcf7b562505cdc48ae40b2ca (diff)
Store/send machine type (laptop/desktop/etc) in benchmark results
Diffstat (limited to 'modules/computer.c')
-rw-r--r--modules/computer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/computer.c b/modules/computer.c
index 281fcaf1..9bb69f78 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -953,6 +953,11 @@ const gchar *get_memory_desc(void) // [1] const (as to say "don't free")
return (gchar*)idle_free(avail); // [1] idle_free()
}
+static gchar *get_machine_type(void)
+{
+ return computer_get_virtualization();
+}
+
const ShellModuleMethod *hi_exported_methods(void)
{
static const ShellModuleMethod m[] = {
@@ -964,6 +969,7 @@ const ShellModuleMethod *hi_exported_methods(void)
{"getKernelModuleDescription", get_kernel_module_description},
{"getMemoryTotal", get_memory_total},
{"getMemoryDesc", get_memory_desc},
+ {"getMachineType", get_machine_type},
{NULL},
};