From 25e537d2d9aa17a3558a3b6f4624ccfc772c26ab Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sat, 6 Jun 2020 16:19:39 -0700 Subject: Store/send machine type (laptop/desktop/etc) in benchmark results --- modules/computer.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/computer.c') 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}, }; -- cgit v1.2.3