Skip to content

Commit

Permalink
Move and activate phoronix front-end
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Aug 17, 2018
1 parent 18a9558 commit 949c504
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions phoronix/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
echo '<h1>Phoronix Test Suite for NEMS Linux</h1><h2>Weekly Benchmarks</h2>';

$logs = array_diff(scandir('/var/log/nems/phoronix/'), array('..', '.', 'index.php'));
if (is_array($logs) && count($logs) > 0) {
rsort($logs);
echo '<ul>' . PHP_EOL;
foreach ($logs as $log) {
echo ' <li><a href="./' . $log . '">' . date('F j, Y',strtotime($log)) . '</a></li>' . PHP_EOL;
}
echo '</ul>' . PHP_EOL;
} else {
echo 'Your NEMS Linux server is too new.<br />Benchmarks will be generated within 7 days (assuming you leave it running 24/7).<br />Please check back soon.';
}
?>

0 comments on commit 949c504

Please sign in to comment.