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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Thu 1/22/15 14:06

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Thu 1/22/15 14:06
Michael Larabel  
pts-core: Add hidden... 
Thu 1/22/15 11:36
Michael Larabel  
pts-core: Fix fallback... 
Sun 1/18/15 20:06
Michael Larabel  
pts-core: Check for... 
Wed 12/31/69 19:00
0a909713086969a53c858513abe300cb2c2721e2  
Merge pull request #41... 
Wed 12/31/69 19:00
3bdee751de2ce0a20017f6436023c870ca249c50  
Merge pull request #42... 
Sun 1/18/15 10:16
Michael Larabel  
pts_Graph: Don't append... 
 
> --git a/pts-core/objects/phodevi/components/phodevi_memory.php b/pts-core/objects/phodevi/components/phodevi_memory.php
index 66ab2fa
..a61ce6f 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'module') === false && stripos($mem_manufacturer'dimm') === false && isset($mem_manufacturer[2]) && ctype_alpha($mem_manufacturer))
+                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))
                 {
                     
$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]))
+                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))
                 {
                     
$product_string .= ' ' $mem_part;
                 }
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2015 by Phoronix Media