diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-07-15 19:02:18 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-07-15 19:02:18 -0400 |
commit | 3f04fc18ef43c71747b1f7038ff3c54cedbf174f (patch) | |
tree | 3ab57081654927a8db8ae6d3ce09316fc8ed0d1b /pts/test-resources/x11perf | |
parent | 22aa27d69079c65c9268a049781a8c26992e2c47 (diff) | |
download | phoronix-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.php | 6 |
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; ?> |