next(); ?>>
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ci) {
echo "
next(), ">";
$pvalue = (int) ($ci['avail'] / $ci['size'] * 100);
$pempty = 100 - $pvalue;
if (!isset($free_graph_width)) {
// swap
$tmp = $pvalue;
$pvalue = $pempty;
$pempty = $tmp;
}
$w = $graph_width;
if (empty($ci['istotal'])) {
$graph = freeblock_to_graph($ci['free_blocks'], $ci['size']);
$blocksgraph = "{$graph}
";
}
else {
$blocksgraph = '';
}
$ci_slots = size($ci['slots']);
$ci_size = size($ci['size']);
$ci_avail = size($ci['avail']);
$ci = number_formats($ci, $numkeys);
$hits_avg_h = number_format(array_avg($ci['hits_by_hour']), 2);
$hits_avg_s = number_format(array_avg($ci['hits_by_second']), 2);
$hits_graph_h = hits_to_graph($ci['hits_by_hour']);
$hits_graph_h_w = count($ci['hits_by_hour']) * 2;
if (!empty($ci['istotal'])) {
$ci['compiling'] = '-';
$ci['can_readonly'] = '-';
}
else {
$ci['compiling'] = $ci['type'] == $type_php ? ($ci['compiling'] ? 'yes' : 'no') : '-';
$ci['can_readonly'] = $ci['can_readonly'] ? 'yes' : 'no';
}
echo <<{$ci['cache_name']}
{$ci_slots} |
{$ci_size} |
{$ci_avail} |
{$blocksgraph} |
|
{$ci['compiling']} |
{$ci['hits']} |
{$hits_avg_h} |
{$hits_graph_h} |
{$hits_avg_s} |
{$ci['misses']} |
{$ci['clogs']} |
{$ci['ooms']} |
{$ci['errors']} |
{$ci['can_readonly']} |
{$ci['cached']} |
{$ci['deleted']} |
{$ci['gc']} |
EOS;
$b->reset();
?>
$cachelist['cache_list'], 'Deleted' => $cachelist['deleted_list']) as $listname => $entries) {
$a->reset();
?>
$t_moduleinfo
$moduleinfo
HTML;
}
?>