system-info doesn't detect my screen resolution:
The following patch fixes this:
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
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
Comment