summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/compress-7zip/parse-results.php
blob: 461ca3e205a663b33b7a1c1c5e5a4bbc15a68eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

$log_file = file_get_contents(getenv("LOG_FILE"));
$BENCHMARK_RESULTS = substr($log_file, strpos($log_file, "Avr:"));
$BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n"));
$array = explode(" ", $BENCHMARK_RESULTS);
$array2 = array();

foreach($array as $value)
	if(!empty($value))
		array_push($array2, $value);

if(!empty($array2[3]))
	echo $array2[3];
?>