From 660497c1b09ea585589abd8e574ff6a7852a2f5f Mon Sep 17 00:00:00 2001 From: realies Date: Sun, 25 Nov 2018 12:03:09 +0000 Subject: [PATCH] add per DIMM information toggle --- plugins/dynamix/include/SystemInformation.php | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/plugins/dynamix/include/SystemInformation.php b/plugins/dynamix/include/SystemInformation.php index 752d7ee9d..49c6ca83f 100644 --- a/plugins/dynamix/include/SystemInformation.php +++ b/plugins/dynamix/include/SystemInformation.php @@ -134,7 +134,7 @@ for ($i=0; $i -
Memory: +
Memory: = 1024) { } else $unit = 'MB'; if ($memory_maximum < $memory_installed) {$memory_maximum = pow(2,ceil(log($memory_installed)/log(2))); $star = '*';} else $star = ''; echo "$memory_installed $unit ".($ecc_support == "None" ? "" : "$ecc_support ")."(max. installable capacity $memory_maximum $unit)$star"; + +$memory_information = shell_exec("dmidecode -qt17"); +$memory_modules = array_filter(explode("Memory Device", $memory_information)); +$memory_properties = array(); +foreach($memory_modules as $memory_module) { + preg_match_all("/(\s*(?[^\n:]+):\s*(?[^\n]+))/mi", $memory_module, $memory_module_properties, PREG_SET_ORDER, 0); + $properties = array(); + foreach($memory_module_properties as $property) { + $properties[$property['key']] = $property['value']; + } + array_push($memory_properties, $properties); +} ?> + +
+{$device['Manufacturer']} - {$device['Part Number']} - {$device['Serial Number']} - {$device['Size']} @ {$device['Configured Clock Speed']}
"; +} +?> +
Network: