summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/x11perf
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-07-15 19:02:18 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-07-15 19:02:18 -0400
commit3f04fc18ef43c71747b1f7038ff3c54cedbf174f (patch)
tree3ab57081654927a8db8ae6d3ce09316fc8ed0d1b /pts/test-resources/x11perf
parent22aa27d69079c65c9268a049781a8c26992e2c47 (diff)
downloadphoronix-test-suite-upstream-3f04fc18ef43c71747b1f7038ff3c54cedbf174f.tar.gz
phoronix-test-suite-upstream-3f04fc18ef43c71747b1f7038ff3c54cedbf174f.tar.xz
phoronix-test-suite-upstream-3f04fc18ef43c71747b1f7038ff3c54cedbf174f.zip
pts: Add another option to x11perf test profile
Diffstat (limited to 'pts/test-resources/x11perf')
-rw-r--r--pts/test-resources/x11perf/parse-results.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/pts/test-resources/x11perf/parse-results.php b/pts/test-resources/x11perf/parse-results.php
index b1d5c68..bde6afb 100644
--- a/pts/test-resources/x11perf/parse-results.php
+++ b/pts/test-resources/x11perf/parse-results.php
@@ -1,6 +1,10 @@
<?php
$BENCHMARK_RESULTS = substr($argv[1], 0, strrpos($argv[1], "/sec"));
-echo trim(substr($BENCHMARK_RESULTS, strrpos($BENCHMARK_RESULTS, " ")));
+$BENCHMARK_RESULTS = trim(substr($BENCHMARK_RESULTS, strrpos($BENCHMARK_RESULTS, " ")));
+if(substr($BENCHMARK_RESULTS, 0, 1) == "(")
+ $BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 1);
+
+echo $BENCHMARK_RESULTS;
?>