»
next(); ?>> $ci) { echo " next(), ">"; $pvalue = (int) ($ci['avail'] / $ci['size'] * 100); $pempty = 100 - $pvalue; if ($config['percent_graph_type'] == 'used') { // swap $tmp = $pvalue; $pvalue = $pempty; $pempty = $tmp; } $w = $config['percent_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['updates']} {$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(); ?>
next(), ">"; ?> $entry) { echo " next(), ">"; $name = htmlspecialchars($entry['name']); $hits = number_format($entry['hits']); $size = size($entry['size']); if ($isphp) { $file_size = size($entry['file_size']); $phprefcount = number_format($entry['phprefcount']); } if ($isphp) { $file_mtime = age($entry['file_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) { $refcount = number_format($entry['refcount']); echo <<{$entry['refcount']} ENTRY; if (isset($entry['file_inode'])) { echo <<{$entry['file_device']} ENTRY; } } echo <<{$entry['hvalue']} ENTRY; if ($listname == 'Deleted') { echo <<{$dtime} ENTRY; } echo " "; } ?>
R
{$namelink} {$entry['hits']} {$size}{$phprefcount} {$file_size} {$file_mtime}{$entry['file_inode']}{$atime} {$ctime}
">
$t_moduleinfo
$moduleinfo
HTML; } ?>