summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/xplane9
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-02 08:45:34 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-02 08:45:34 -0500
commit0db69cc24d2ee40d3b049b5fac7eb3b14dcafa52 (patch)
tree986171b79e2ed377f8ad84dc6855f56352f65df0 /pts/test-resources/xplane9
parente34643952a72638af79af270088ed18858e4791b (diff)
downloadphoronix-test-suite-upstream-0db69cc24d2ee40d3b049b5fac7eb3b14dcafa52.tar.gz
phoronix-test-suite-upstream-0db69cc24d2ee40d3b049b5fac7eb3b14dcafa52.tar.xz
phoronix-test-suite-upstream-0db69cc24d2ee40d3b049b5fac7eb3b14dcafa52.zip
pts: Fix for xplane9 FPS detection
Diffstat (limited to 'pts/test-resources/xplane9')
-rw-r--r--pts/test-resources/xplane9/parse-results.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/pts/test-resources/xplane9/parse-results.php b/pts/test-resources/xplane9/parse-results.php
index f84b042..1cfe403 100644
--- a/pts/test-resources/xplane9/parse-results.php
+++ b/pts/test-resources/xplane9/parse-results.php
@@ -3,5 +3,9 @@ $log_file = file_get_contents(getenv("LOG_FILE"));
$BENCHMARK_RESULTS = substr($log_file, strpos($log_file, "phase 1:") + 8);
$BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, strpos($BENCHMARK_RESULTS, "fps=") + 4);
$BENCHMARK_RESULTS = trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")));
+
+if(intval($BENCHMARK_RESULTS) == 78)
+ $BENCHMARK_RESULTS = "0.00";
+
echo $BENCHMARK_RESULTS;
?>