-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move and activate phoronix front-end
- Loading branch information
NEMS Linux
committed
Aug 17, 2018
1 parent
18a9558
commit 949c504
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.'; | ||
} | ||
?> |