Changeset 0c18fdb in git


Ignore:
Timestamp:
2006-08-27T10:57:32Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
d468a76
Parents:
63cea5e
Message:

size format on size values

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@109 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/xcache.tpl.php

    r63cea5e r0c18fdb  
    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.