mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:40:13 +01:00
webui fix
This commit is contained in:
parent
d323e076ac
commit
1a5c36eb64
@ -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;
|
||||
|
@ -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) });
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user