Changeset 538 for trunk/admin/xcache.php
- Timestamp:
- 03/02/2008 07:05:02 AM (5 years ago)
- Files:
-
- 1 modified
-
trunk/admin/xcache.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/xcache.php
r535 r538 152 152 } 153 153 154 function bar_ percent($percent, $active)154 function bar_hits_percent($v, $percent, $active) 155 155 { 156 156 $r = 220 + (int) ($percent * 25); … … 158 158 $percent = (int) ($percent * 100); 159 159 $a = $active ? ' active' : ''; 160 return '<div >'160 return '<div title="' . $v . '">' 161 161 . '<div class="barf' . $a . '" style="height: ' . (100 - $percent) . '%"></div>' 162 162 . '<div class="barv' . $a . '" style="background: rgb(' . "$r,$g,$b" . '); height: ' . $percent . '%"></div>' … … 178 178 $html = array(); 179 179 foreach ($hits as $i => $v) { 180 $html[] = bar_ percent($v / $max, $i == $t);180 $html[] = bar_hits_percent($v, $v / $max, $i == $t); 181 181 } 182 182 return implode('', $html);

