Changeset 109


Ignore:
Timestamp:
2006-08-27T12:57:32+02:00 (8 years ago)
Author:
moo
Message:

size format on size values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/xcache.tpl.php

    r108 r109  
    5656    </tr> 
    5757    <?php 
    58     $numkeys = explode(',', 'slots,size,avail,hits,misses,clogs,ooms,cached,deleted'); 
     58    $numkeys = explode(',', 'hits,misses,clogs,ooms,cached,deleted'); 
    5959    foreach ($cacheinfos as $i => $ci) { 
    6060        echo " 
     
    6464 
    6565        $ci = number_formats($ci, $numkeys); 
     66        $ci['slots'] = size($ci['slots']); 
     67        $ci['size']  = size($ci['size']); 
     68        $ci['avail'] = size($ci['avail']); 
    6669        $ci['compiling']    = $ci['type'] == $type_php ? ($ci['compiling'] ? 'yes' : 'no') : '-'; 
    6770        $ci['can_readonly'] = $ci['can_readonly'] ? 'yes' : 'no'; 
     
    106109    <?php 
    107110    foreach ($ci['free_blocks'] as $block) { 
    108         $size   = number_format($block['size']); 
    109         $offset = number_format($block['offset']); 
     111        $size   = size($block['size']); 
     112        $offset = size($block['offset']); 
    110113 
    111114        $c = $b->next(); 
Note: See TracChangeset for help on using the changeset viewer.