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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Sun 9/21/14 21:47

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Sun 9/21/14 21:47
Michael Larabel  
phoromatic: Update the... 
Sun 9/21/14 21:44
Michael Larabel  
pts-core: Add support to... 
Sun 9/21/14 20:56
Michael Larabel  
pts-core: Separate out... 
Sun 9/21/14 20:32
Michael Larabel  
phoromatic: Advertise... 
Sun 9/21/14 17:51
Michael Larabel  
phoromatic: With this... 
Sat 9/20/14 19:27
Michael Larabel  
phoromatic: Client-side... 
 
> --git a/pts-core/objects/phodevi/components/phodevi_memory.php b/pts-core/objects/phodevi/components/phodevi_memory.php
index d1aef0c
..4697824 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)
+                if(!empty(
$mem_manufacturer) && stripos($mem_manufacturer'manufacturer') === false && isset($mem_manufacturer[2]) && ctype_alpha($mem_manufacturer))
                 {
                     
$product_string .= ' ' $mem_manufacturer;
                 }

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