Last Update
|
>
Site Name
|
Time [min]
|
Number Files
|
Number Nodes
|
Unlisted (error)
|
Empty Nodes
|
Num Missing
|
No Disk (no tape)
|
Size [TB]
|
Num Orphan
|
Size [TB]
|
Unmerged Cleaned (logs)
|
fetchArray()) {
$bad_background = ' style="background-color:#ff6666;"';
$queued_background = ' style="background-color:#66ffff;"';
$good_background = ' style="background-color:#66ff66;"';
$disabled_background = ' style="background-color:#bbbbbb;"';
$long_background = ' style="background-color:#ffff66;"';
$background_missing = ($row['missing'] > $config['MaxMissing']) ? $bad_background : '';
$background_nosource = ($row['unrecoverable'] != 0) ? $bad_background : '';
$background_orphan = ($row['orphan'] > $config['MaxOrphan']) ? $bad_background : '';
$background_files = ($row['files'] == 0) ? $bad_background : '';
$background_unlisted = ($row['unlisted_bad'] != 0) ? $bad_background : '';
$tooltip = '';
// Get the running cell colored based on running status
if (isset($_GET['history'])) {
$background_site = $background_files;
} else {
switch ($row['isrunning']) {
case 0:
$background_site = $background_files;
break;
case 1:
$background_site = $queued_background;
break;
case 2:
$background_site = ((strtotime($row['laststarted']) + 24 * 3600) > time()) ? $good_background : $long_background;
$tooltip = 'Started run: ' . $row['laststarted'] . '';
break;
default:
$background_site = $disabled_background;
}
}
$background_time = ((strtotime($row['entered']) + 24 * 3600) > time()) ? $good_background : '';
$html_row = sprintf(
'%s | %s%s | %.0f | %d | %d | %d (%d) | %d | %d (blocks) | %d (%d) | %.2f | %d | %.2f | %d (%d) | ',
$background_time, $row['site'], $row['entered'],
$background_site, $row['site'], $row['site'], $tooltip, $row['time']/60.,
$background_files, $row['site'], $row['files'], $row['nodes'],
$background_unlisted, $row['site'], $row['unlisted'], $row['unlisted_bad'], $row['emtpy'],
$background_missing, $row['site'], $row['missing'], $row['site'],
$background_nosource, $row['site'], $row['nosource'], $row['site'], $row['unrecoverable'], $row['m_size']/pow(1024.,4),
$background_orphan, $row['site'], $row['orphan'], $row['o_size']/pow(1024.,4), $row['site'], $row['unmerged'], $row['unmergedlogs']);
if (isset($_GET['history'])) {
$html_row = strip_tags($html_row, '');
}
printf(' | %s
', $html_row);
printf("\n");
}
?>
Documentation
Explanations of columns are given here.
Details of the Consistency Check implementation can be seen
here.