diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2020-06-06 16:19:39 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2020-06-06 18:46:58 -0700 |
commit | 25e537d2d9aa17a3558a3b6f4624ccfc772c26ab (patch) | |
tree | c7f94e19f04c8b07241721351f463466151c1d60 /modules/computer.c | |
parent | c5cb494c9b511164fcf7b562505cdc48ae40b2ca (diff) |
Store/send machine type (laptop/desktop/etc) in benchmark results
Diffstat (limited to 'modules/computer.c')
-rw-r--r-- | modules/computer.c | 6 |
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}, }; |