summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/iozone/parse-results.php
diff options
context:
space:
mode:
Diffstat (limited to 'pts/test-resources/iozone/parse-results.php')
-rw-r--r--pts/test-resources/iozone/parse-results.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/pts/test-resources/iozone/parse-results.php b/pts/test-resources/iozone/parse-results.php
index 2bece97..9a7ee17 100644
--- a/pts/test-resources/iozone/parse-results.php
+++ b/pts/test-resources/iozone/parse-results.php
@@ -1,7 +1,9 @@
<?php
+$log_file = file_get_contents(getenv("LOG_FILE"));
+
// find the line with "reclean" on it
-$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "reclen"));
+$BENCHMARK_RESULTS = substr($log_file, strrpos($log_file, "reclen"));
// skip to the next line
$BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 1+strpos($BENCHMARK_RESULTS, "\n"));
// remove stuff after this line