Ignore:
Timestamp:
2008-02-17T17:49:46+01:00 (7 years ago)
Author:
moo
Message:

slide hits per second and hour

File:
1 edited

Legend:

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

    r521 r522  
    1717    <col align="right" /> 
    1818    <col align="right" /> 
     19    <col /> 
     20    <col align="right" /> 
     21    <col align="right" /> 
    1922    <col align="right" /> 
    2023    <col align="right" /> 
     
    3235        <th><?php echo _T('Compiling'); ?></th> 
    3336        <th><?php echo _T('Hits'); ?></th> 
     37        <th><?php echo _T('Hits/H'); ?></th> 
     38        <th><?php echo _T('Hits 24H'); ?></th> 
     39        <th><?php echo _T('Hits/S'); ?></th> 
    3440        <th><?php echo _T('Misses'); ?></th> 
    3541        <th><?php echo _T('Clogs'); ?></th> 
     
    6571        $ci_avail = size($ci['avail']); 
    6672        $ci = number_formats($ci, $numkeys); 
     73 
     74        $hits_avg_h     = number_format(array_avg($ci['hits_by_hour']), 2); 
     75        $hits_avg_s     = number_format(array_avg($ci['hits_by_second']), 2); 
     76        $hits_graph_h   = hits_to_graph($ci['hits_by_hour']); 
     77        $hits_graph_h_w = count($ci['hits_by_hour']) * 2; 
     78 
    6779        if (!empty($ci['istotal'])) { 
    6880            $ci['compiling']    = '-'; 
     
    95107        <td>{$ci['compiling']}</td> 
    96108        <td>{$ci['hits']}</td> 
     109        <td>{$hits_avg_h}</td> 
     110        <td><div class="hitsgraph" style="width: {$hits_graph_h_w}px">{$hits_graph_h}</div></td> 
     111        <td>{$hits_avg_s}</td> 
    97112        <td>{$ci['misses']}</td> 
    98113        <td>{$ci['clogs']}</td> 
Note: See TracChangeset for help on using the changeset viewer.