size format on size values
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@109 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
parent
63cea5ede2
commit
0c18fdb6e1
|
@ -55,7 +55,7 @@ Caches:
|
|||
<th>Deleted</th>
|
||||
</tr>
|
||||
<?php
|
||||
$numkeys = explode(',', 'slots,size,avail,hits,misses,clogs,ooms,cached,deleted');
|
||||
$numkeys = explode(',', 'hits,misses,clogs,ooms,cached,deleted');
|
||||
foreach ($cacheinfos as $i => $ci) {
|
||||
echo "
|
||||
<tr ", $a->next(), " height=\"20\">";
|
||||
|
@ -63,6 +63,9 @@ Caches:
|
|||
$pused = 100 - $pavail;
|
||||
|
||||
$ci = number_formats($ci, $numkeys);
|
||||
$ci['slots'] = size($ci['slots']);
|
||||
$ci['size'] = size($ci['size']);
|
||||
$ci['avail'] = size($ci['avail']);
|
||||
$ci['compiling'] = $ci['type'] == $type_php ? ($ci['compiling'] ? 'yes' : 'no') : '-';
|
||||
$ci['can_readonly'] = $ci['can_readonly'] ? 'yes' : 'no';
|
||||
echo <<<EOS
|
||||
|
@ -105,8 +108,8 @@ foreach ($cacheinfos as $i => $ci) {
|
|||
<th><?php echo $ci['cache_name']; ?> size<br>offset</th>
|
||||
<?php
|
||||
foreach ($ci['free_blocks'] as $block) {
|
||||
$size = number_format($block['size']);
|
||||
$offset = number_format($block['offset']);
|
||||
$size = size($block['size']);
|
||||
$offset = size($block['offset']);
|
||||
|
||||
$c = $b->next();
|
||||
echo "
|
||||
|
|
Loading…
Reference in New Issue