diff options
Diffstat (limited to 'usr/local/www/javascript/index/ajax.js')
-rw-r--r-- | usr/local/www/javascript/index/ajax.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js index 3bfd67b..fa33914 100644 --- a/usr/local/www/javascript/index/ajax.js +++ b/usr/local/www/javascript/index/ajax.js @@ -44,7 +44,8 @@ function stats(x) { updateCpuFreq(values[9]); updateLoadAverage(values[10]); updateMbuf(values[11]); - updateStateMeter(values[12]); + updateMbufMeter(values[12]); + updateStateMeter(values[13]); } function updateMemory(x) { @@ -57,6 +58,11 @@ function updateMemory(x) { } function updateMbuf(x) { + if(jQuery('#mbuf')) + jQuery("#mbuf").html(x); +} + +function updateMbufMeter(x) { if(jQuery('#mbufusagemeter')) jQuery("#mbufusagemeter").html(x + '%'); if(jQuery('#mbufwidtha')) |