Summary
Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49
Recent Commits
>
--git a/pts-core/objects/phodevi/components/phodevi_cpu.php b/pts-core/objects/phodevi/components/phodevi_cpu.php
index c0a6450..f626399 100644
--- a/pts-core/objects/phodevi/components/phodevi_cpu.php
+++ b/pts-core/objects/phodevi/components/phodevi_cpu.php
@@ -83,7 +83,7 @@ class phodevi_cpu extends phodevi_device_interface
{
$present = pts_file_io::file_get_contents('/sys/devices/system/cpu/online');
- if(substr($present, 0, 2) == '0-')
+ if(isset($present[2]) && substr($present, 0, 2) == '0-')
{
$present = substr($present, 2);
diff --git a/pts-core/objects/phodevi/components/phodevi_system.php b/pts-core/objects/phodevi/components/phodevi_system.php
index 18c0e09..534a6bd 100644
--- a/pts-core/objects/phodevi/components/phodevi_system.php
+++ b/pts-core/objects/phodevi/components/phodevi_system.php
@@ -1066,6 +1066,8 @@ class phodevi_system extends phodevi_device_interface
}
public static function sw_display_server()
{
+ $info = null;
+
if(phodevi::is_windows())
{
// TODO: determine what to do for Windows support
<
Copyright © 2013 by Phoronix Media