summaryrefslogtreecommitdiffstats
path: root/usr/local/www/javascript
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-07-16 16:09:16 -0400
committerjim-p <jimp@pfsense.org>2013-07-16 16:09:44 -0400
commit2cb760dae2fa2214240bb0083b060966be548604 (patch)
tree92311e66b68bac3b5b220ee4da9cc37d540a260e /usr/local/www/javascript
parent97f544d7e59ebebaf9d434f67878d671c6ca5275 (diff)
downloadpfsense-2cb760dae2fa2214240bb0083b060966be548604.zip
pfsense-2cb760dae2fa2214240bb0083b060966be548604.tar.gz
Some more tweaks to state and mbuf update/output on dashboard widget.
Diffstat (limited to 'usr/local/www/javascript')
-rw-r--r--usr/local/www/javascript/index/ajax.js8
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'))
OpenPOWER on IntegriCloud