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

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Mon 8/30/10 20:43

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Mon 8/30/10 20:43
Michael Larabel  
 
Mon 8/30/10 20:37
Michael Larabel  
pts-core: Last minute... 
Sat 8/28/10 12:53
Michael Larabel  
pts-core: Detect if a... 
Sat 8/28/10 10:34
Michael Larabel  
pts-core: Fix test result... 
Fri 8/27/10 8:51
Michael Larabel  
pts-core: When doing a... 
Wed 8/25/10 18:46
Michael Larabel  
 
 
> --git a/pts-core/functions/pts-functions_system_cpu.php b/pts-core/functions/pts-functions_system_cpu.php
index 9371c62
..8c547e7 100644
--- a/pts-core/functions/pts-functions_system_cpu.php
+++ b/pts-core/functions/pts-functions_system_cpu.php
@@ -12,+12,11 @@ function read_cpuinfo_values($attribute)
         {
             
$line explode(": "$line);
             
$this_attribute trim($line[0]);
-            
$this_value trim($line[1]);
+
+            if(
count($line) > 1)
+                
$this_value trim($line[1]);
+            else
+                
$this_value "";

             if(
$this_attribute == $attribute)
                 
array_push($cpuinfo_matches$this_value);
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media