Phoronix Forums  

Go Back   Phoronix Forums > Phoronix > Phoronix Test Suite

Phoronix Test Suite Discussion & collaboration on the Phoronix Test Suite software and specification.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2008, 02:31 PM
uncle_fungus uncle_fungus is offline
Phoronix Test Suite
 
Join Date: Apr 2008
Location: York, UK
Posts: 134
Default Patch for pts-functions_system_graphics.php

system-info doesn't detect my screen resolution:
Code:
[uncle_fungus@Iguana phoronix-test-suite]$ ./phoronix-test-suite system-info

======================================
Phoronix Test Suite v0.5.0 (TRONDHEIM)
System Information
======================================

Hardware:
Processor: Intel CPU T2080 @ 1.73GHz (Total Cores: 2), Motherboard Chipset: ATI Unknown device 5a31, System Memory: 883MB, Disk Space: 8GB, Graphics: ATI Radeon Xpress Series, Screen Resolution: Unknown

Software:
OS: PCLinuxOS release 2007 (PCLinuxOS) for i586, Kernel: 2.6.22.10.tex1 (i686), X.Org Server: 1.4.0.90, OpenGL: 2.1.7276 (fglrx), Compiler: GCC 4.1.1
The following patch fixes this:
Code:
diff --git a/pts-core/functions/pts-functions_system_graphics.php b/pts-core/functions/pts-functions_system_graphics.php
index 96e5153..7d9e161 100644
--- a/pts-core/functions/pts-functions_system_graphics.php
+++ b/pts-core/functions/pts-functions_system_graphics.php
@@ -119,7 +119,7 @@ function xrandr_screen_resolution()
                $info = substr($info, 0, strpos($info, " "));
                $info = explode("x", $info);

-               if(count($info) != 2 && !is_int($info[0]) || !is_int($info[1]))
+               if(count($info) != 2 && (!is_int($info[0]) || !is_int($info[1])))
                        $info = "";
        }
Code:
[uncle_fungus@Iguana phoronix-test-suite]$ ./phoronix-test-suite system-info

======================================
Phoronix Test Suite v0.5.0 (TRONDHEIM)
System Information
======================================

Hardware:
Processor: Intel CPU T2080 @ 1.73GHz (Total Cores: 2), Motherboard Chipset: ATI Unknown device 5a31, System Memory: 883MB, Disk Space: 8GB, Graphics: ATI Radeon Xpress Series, Screen Resolution: 1280x800

Software:
OS: PCLinuxOS release 2007 (PCLinuxOS) for i586, Kernel: 2.6.22.10.tex1 (i686), X.Org Server: 1.4.0.90, OpenGL: 2.1.7276 (fglrx), Compiler: GCC 4.1.1
Reply With Quote
  #2  
Old 05-01-2008, 03:06 PM
Michael Michael is online now
Phoronix
 
Join Date: Jun 2006
Location: United States
Posts: 4,564
Default

Committed to git, thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.