mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 18:48:49 -05:00
Dashboard: fix incorrect memory type
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user