data['header'] = 'SimpleSAMLphp Statistics Metadata';
$this->includeAtTemplateBase('includes/header.php');
?>
');
if (isset($this->data['metadata'])) {
if (isset($this->data['metadata']['lastrun'] )) {
echo('
Aggregator last run at | ' .
date('l jS \of F Y H:i:s', $this->data['metadata']['lastrun']) .
' |
');
}
if (isset($this->data['metadata']['notBefore'] )) {
echo('Aggregated data until | ' .
date('l jS \of F Y H:i:s', $this->data['metadata']['notBefore']) .
' |
');
}
if (isset($this->data['metadata']['memory'] )) {
echo('Memory usage | ' .
number_format($this->data['metadata']['memory'] / (1024*1024), 2) . ' MB' .
' |
');
}
if (isset($this->data['metadata']['time'] )) {
echo('Execution time | ' .
$this->data['metadata']['time'] . ' seconds' .
' |
');
}
if (isset($this->data['metadata']['lastlinehash'] )) {
echo('SHA1 of last processed logline | ' .
$this->data['metadata']['lastlinehash'] .
' |
');
}
if (isset($this->data['metadata']['lastline'] )) {
echo('Last processed logline | ' .
$this->data['metadata']['lastline'] .
' |
');
}
} else {
echo('No metadata found |
');
}
echo('');
echo('[ Show statistics ]
');
$this->includeAtTemplateBase('includes/footer.php');