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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Mon 8/31/15 19:43

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Mon 8/31/15 19:43
Michael Larabel  
Revert "pts-core: Some... 
Mon 8/31/15 19:43
Michael Larabel  
Revert "ppts-core:... 
Mon 8/31/15 19:36
Michael Larabel  
 
Mon 8/31/15 19:33
Michael Larabel  
pts-core: Some memory... 
Wed 12/31/69 19:00
2041283b2911b26f7fa1546b5d31c67f31d31e15  
Merge pull request #81... 
Mon 8/31/15 18:36
Michael Larabel  
pts-core: Fix for export... 
 
> --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 © 2015 by Phoronix Media