Dashboard: fix incorrect memory type

This commit is contained in:
bergware
2019-01-31 23:04:36 +01:00
parent 4ea48d0cb8
commit 4a24255c86
+1 -1
View File
@@ -120,7 +120,7 @@ foreach ($memory_devices as $device) {
list($size, $unit) = explode(' ',$device['Size']);
$base = array_search($unit,$sizes);
if ($base!==false) $memory_installed += $size*pow(1024,$base);
if (!$memory_type) $memory_type = $device['Type'];
if (!$memory_type && $device['Type']!='Unknown') $memory_type = $device['Type'];
}
$memory_array = dmidecode('Physical Memory Array','16');
foreach ($memory_array as $device) {