diff --git a/admin/xcache.css b/admin/xcache.css index f05cf07..eb6fa41 100644 --- a/admin/xcache.css +++ b/admin/xcache.css @@ -9,8 +9,9 @@ th a { color: white; font-weight: bold; display: block; width: 100%; height: 100 span.sortarrow { color: white; text-decoration: none; } .freeblocks { float: left; margin-right: 4px;} form {margin: 0; padding: 0} -.percent { border: 1px solid gray; width: 90%; } -.percent .v { background: black; font-size: 1px; line-height: 11px;} +.percent { border: 1px solid black; width: 80%; height: 100%; } +.percent div { font-size: 1px; line-height: 1px; width: 100%;} +.percent .pavail { background: blue; } .switcher, h1 { text-align: center; display: block; } .switcher * { color: blue; } .switcher a.active { font-weight: bold; font-size: 130%; color: black; } diff --git a/admin/xcache.tpl.php b/admin/xcache.tpl.php index b8a9e92..481d26f 100644 --- a/admin/xcache.tpl.php +++ b/admin/xcache.tpl.php @@ -43,7 +43,7 @@ Caches: Slots Size Avail - Used + % Clear Compiling Hits @@ -58,18 +58,19 @@ Caches: $numkeys = explode(',', 'slots,size,avail,hits,misses,clogs,ooms,cached,deleted'); foreach ($cacheinfos as $i => $ci) { echo " - next(), ">"; + next(), " height=\"20\">"; + $pavail = (int) ($ci['avail'] / $ci['size'] * 100); + $pused = 100 - $pavail; + $ci = number_formats($ci, $numkeys); $ci['compiling'] = $ci['type'] == $type_php ? ($ci['compiling'] ? 'yes' : 'no') : '-'; $ci['can_readonly'] = $ci['can_readonly'] ? 'yes' : 'no'; - - $percent = (int) (($ci['size'] - $ci['avail']) / $ci['size'] * 100); echo <<{$ci['cache_name']} {$ci['slots']} {$ci['size']} {$ci['avail']} -
 
+