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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Fri 4/18/14 11:23

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Fri 4/18/14 11:23
Michael Larabel  
phodevi: Add GPU usage... 
Wed 12/31/69 19:00
5cc96094d0ca5ff618655eed3c3f7e242634789d  
Merge pull request #20... 
Wed 4/16/14 13:04
Michael Larabel  
pts-core: Allow a range... 
Tue 4/15/14 20:56
Michael Larabel  
phoromatic: Add setting... 
Tue 4/15/14 20:06
Michael Larabel  
phoromatic: Making more... 
Tue 4/15/14 16:36
Michael Larabel  
pts-core: Enough for new... 
 
> --git a/pts-core/objects/phodevi/components/phodevi_memory.php b/pts-core/objects/phodevi/components/phodevi_memory.php
index a61ce6f
..009823d 100644
--- a/pts-core/objects/phodevi/components/phodevi_memory.php
+++ b/pts-core/objects/phodevi/components/phodevi_memory.php
@@ -191,12 +191,12 @@ class phodevi_memory extends phodevi_device_interface

                 $product_string 
null;

-                if(!empty(
$mem_manufacturer) && stripos($mem_manufacturer'manufacturer') === false  && stripos($mem_manufacturer'part') === false && stripos($mem_manufacturer'module') === false && stripos($mem_manufacturer'dimm') === false && isset($mem_manufacturer[2]) && ctype_alpha($mem_manufacturer))
+                if(isset(
$mem_manufacturer[2]) && ctype_alpha($mem_manufacturer[0]) && stripos($mem_manufacturer'manufacturer') === false  && stripos($mem_manufacturer'part') === false && stripos($mem_manufacturer'module') === false && stripos($mem_manufacturer'dimm') === false && isset($mem_manufacturer[2]) && ctype_alpha($mem_manufacturer))
                 {
                     
$product_string .= ' ' $mem_manufacturer;
                 }

-                if(!empty(
$mem_part) && stripos($mem_part'part') === false && stripos($mem_part'module') === false && stripos($mem_part'dimm') === false && substr($mem_part02) != '0x' && !isset($mem_part[24]) && ctype_alnum($mem_part))
+                if(isset(
$mem_part[2]) && stripos($mem_part'part') === false && stripos($mem_part'module') === false && stripos($mem_part'dimm') === false && substr($mem_part02) != '0x' && !isset($mem_part[24]) && ctype_alnum($mem_part))
                 {
                     
$product_string .= ' ' $mem_part;
                 }
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2014 by Phoronix Media