From 1a5c36eb64ed6cca3801abef326c1c04f8afcd54 Mon Sep 17 00:00:00 2001 From: SJ Date: Sat, 16 Feb 2013 12:51:43 +0100 Subject: [PATCH] webui fix --- webui/model/stat/counter.php | 5 +++-- webui/view/javascript/piler.js | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/webui/model/stat/counter.php b/webui/model/stat/counter.php index b7e23708..d16a51b5 100644 --- a/webui/model/stat/counter.php +++ b/webui/model/stat/counter.php @@ -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; diff --git a/webui/view/javascript/piler.js b/webui/view/javascript/piler.js index 43dd5396..07d987ee 100644 --- a/webui/view/javascript/piler.js +++ b/webui/view/javascript/piler.js @@ -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) }); },