projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Mon 7/27/15 14:05

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Mon 7/27/15 14:05
Michael Larabel  
pts-core: Show estimated... 
Fri 7/17/15 17:37
Michael Larabel  
phoromatic: Go between 60... 
Wed 12/31/69 19:00
ddcbdc77fb78eec13f77b6fd21f394f08df62395  
Merge branch 'master' of... 
Sun 7/12/15 14:10
Michael Larabel  
pts-core: Support... 
Wed 7/1/15 12:31
Michael Larabel  
pts-core: Few render... 
Mon 6/29/15 16:11
Michael Larabel  
phoromatic: Set the... 
 
> --git a/pts-core/objects/phodevi/components/phodevi_memory.php b/pts-core/objects/phodevi/components/phodevi_memory.php
index cf7a7d4
..7cc8059 100644
--- a/pts-core/objects/phodevi/components/phodevi_memory.php
+++ b/pts-core/objects/phodevi/components/phodevi_memory.php
@@ -89,+89,@@ class phodevi_memory extends phodevi_device_interface
             $mem_size 
phodevi_linux_parser::read_dmidecode('memory''Memory Device''Size'false, array('Not Installed''No Module Installed'));
             
$mem_speed phodevi_linux_parser::read_dmidecode('memory''Memory Device''Speed'true'Unknown');
             
$mem_type phodevi_linux_parser::read_dmidecode('memory''Memory Device''Type'true, array('Unknown''Other'));
-            
$mem_manufacturer phodevi_linux_parser::read_dmidecode('memory''Memory Device''Manufacturer'false, array('Unknown'));
-            
$mem_part phodevi_linux_parser::read_dmidecode('memory''Memory Device''Part Number'false, array('Unknown'));
+            
$mem_manufacturer phodevi_linux_parser::read_dmidecode('memory''Memory Device''Manufacturer'true, array('Unknown'));
+            
$mem_part phodevi_linux_parser::read_dmidecode('memory''Memory Device''Part Number'true, array('Unknown'));
         }

         if(
is_array($mem_type))
@@ -
182,24 +182,14 @@ class phodevi_memory extends phodevi_device_interface

                 $product_string 
null;

-                if(
is_array($mem_manufacturer) && count(array_unique($mem_manufacturer)) == 1)
+                if(!empty(
$mem_manufacturer) && stripos($mem_manufacturer'manufacturer') === false)
                 {
-                    
$mem_manufacturer array_pop($mem_manufacturer);
-
-                    if(!empty(
$mem_manufacturer))
-                    {
-                        
$product_string .= ' ' $mem_manufacturer;
-                    }
+                    
$product_string .= ' ' $mem_manufacturer;
                 }

-                if(
is_array($mem_part) && count(array_unique($mem_part)) == 1)
+                if(!empty(
$mem_part) && stripos($mem_manufacturer'part') === false)
                 {
-                    
$mem_part array_pop($mem_part);
-
-                    if(!empty(
$mem_part))
-                    {
-                        
$product_string .= ' ' $mem_part;
-                    }
+                    
$product_string .= ' ' $mem_part;
                 }

                 
$mem_string $mem_count ' x ' $mem_size[0] . ' ' $mem_prefix $product_string;
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2015 by Phoronix Media