webui fix

This commit is contained in:
SJ 2013-02-16 12:51:43 +01:00
parent d323e076ac
commit 1a5c36eb64
2 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class ModelStatCounter extends Model {
$counter = $memcache->get(Registry::get('counters'));
if(isset($counter[MEMCACHED_PREFIX . 'counters_last_update'])) {
if(isset($counter[MEMCACHED_PREFIX . 'size'])) { $asize = nice_size($counter[MEMCACHED_PREFIX . 'size'], ' '); }
if(isset($counter[MEMCACHED_PREFIX . 'size'])) { $asize = $counter[MEMCACHED_PREFIX . 'size']; }
unset($counter[MEMCACHED_PREFIX . 'size']);
return array ($asize, $counter);
@ -22,7 +22,8 @@ class ModelStatCounter extends Model {
$query = $this->db->query("SELECT * FROM " . TABLE_COUNTER);
if($query->num_rows == 1) {
$asize = nice_size($query->row['size'], ' ');
$asize = $query->row['size'];
unset($query->row['size']);
$counter = $query->row;

View File

@ -588,6 +588,8 @@ var Piler =
.done( function(a) {
$('#A1').html(a);
document.body.style.cursor = 'default';
//setInterval('Piler.load_health()', Piler.health_refresh * 1000);
})
.fail(function(a, b) { alert("Problem retrieving XML data:" + b) });
},