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:16 -0400
commitf8b00778586e22385bb5311f95cdb75de2f5f88e (patch)
treefd8db4c8a3061f161208324a6a2169d2ab01408c /usr/local/www/javascript
parent84962c6306e7f6c2cd80bf53c729320bec93f269 (diff)
downloadpfsense-f8b00778586e22385bb5311f95cdb75de2f5f88e.zip
pfsense-f8b00778586e22385bb5311f95cdb75de2f5f88e.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