»
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']} EOS; $b->reset(); ?>
-
{$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']}
  
  
  
$cachelist['cache_list'], 'Deleted' => $cachelist['deleted_list']) as $listname => $entries) { $a->reset(); ?>
'; } if ($isphp) { echo ''; echo ''; echo ''; echo ''; } echo " next(), ">"; ?> $entry) { echo " next(), ">"; $name = htmlspecialchars($entry['name']); $hits = number_format($entry['hits']); $refcount = number_format($entry['refcount']); $size = size($entry['size']); if ($isphp) { $sourcesize = size($entry['sourcesize']); $phprefcount = number_format($entry['phprefcount']); } if ($isphp) { $mtime = age($entry['mtime']); } $ctime = age($entry['ctime']); $atime = age($entry['atime']); if ($listname == 'Deleted') { $dtime = age($entry['dtime']); } if (!$isphp) { echo << ENTRY; $uname = urlencode($entry['name']); $namelink = "$name"; } else { $namelink = $name; } echo <<{$entry['cache_name']} {$i} ENTRY; if ($isphp) { echo <<{$phprefcount} ENTRY; if (isset($entry['inode'])) { echo <<{$entry['device']} ENTRY; } } echo <<{$entry['hvalue']} ENTRY; if ($listname == 'Deleted') { echo <<{$dtime} ENTRY; } echo " "; } ?>
R
{$namelink} {$entry['hits']} {$entry['refcount']} {$size}{$sourcesize} {$mtime}{$entry['inode']}{$atime} {$ctime}
">
$t_moduleinfo
$moduleinfo
HTML; } ?>