diff options
author | jim-p <jimp@pfsense.org> | 2013-07-16 15:08:58 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-07-16 15:08:58 -0400 |
commit | e4a0be9bee26f71da33e1fa4fca41f597fda2dbd (patch) | |
tree | 7537647d595882b96e533ebdfc535bf22bb466c9 /usr/local/www/javascript | |
parent | 980b9cc6f854fb2b24f9345828e5920e306f29e3 (diff) | |
download | pfsense-e4a0be9bee26f71da33e1fa4fca41f597fda2dbd.zip pfsense-e4a0be9bee26f71da33e1fa4fca41f597fda2dbd.tar.gz |
Make mbufs update via ajax
Diffstat (limited to 'usr/local/www/javascript')
-rw-r--r-- | usr/local/www/javascript/index/ajax.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js index 5cae407..d2a6536 100644 --- a/usr/local/www/javascript/index/ajax.js +++ b/usr/local/www/javascript/index/ajax.js @@ -43,6 +43,7 @@ function stats(x) { updateGatewayStats(values[8]); updateCpuFreq(values[9]); updateLoadAverage(values[10]); + updateMbuf(values[11]); } function updateMemory(x) { @@ -54,6 +55,15 @@ function updateMemory(x) { jQuery("#memwidthb").css('width', (100 - x) + 'px'); } +function updateMbuf(x) { + if(jQuery('#mbufusagemeter')) + jQuery("#mbufusagemeter").html(x + '%'); + if(jQuery('#mbufwidtha')) + jQuery("#mbufwidtha").css('width',x + 'px'); + if(jQuery('#mbufwidthb')) + jQuery("#mbufwidthb").css('width', (100 - x) + 'px'); +} + function updateCPU(x) { if(jQuery('#cpumeter')) jQuery("#cpumeter").html(x + '%'); |