summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-08-17 11:11:13 -0400
committerSteve Beaver <sbeaver@netgate.com>2017-08-17 11:11:13 -0400
commit57cea206acdd684ca89ad92998ca619c3f065e10 (patch)
tree73f62fd80552108abed82433f7284df7aad7c197 /src/usr/local/www
parentacd2f3120c608317a6742a376156bdca4efb71da (diff)
downloadpfsense-57cea206acdd684ca89ad92998ca619c3f065e10.zip
pfsense-57cea206acdd684ca89ad92998ca619c3f065e10.tar.gz
Widget comment edit
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/widgets/widgets/system_information.widget.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php
index ae38c56..17a2b19 100644
--- a/src/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/src/usr/local/www/widgets/widgets/system_information.widget.php
@@ -568,9 +568,7 @@ function updateMbufMeter(x) {
}
function updateCPU(total, used) {
-
- // Just in case it wraps
- if ((lastTotal <= total) && (lastUsed <= used)) {
+ if ((lastTotal <= total) && (lastUsed <= used)) { // Just in case it wraps
// Calculate the total ticks and the used ticks sine the last time it was checked
var d_total = total - lastTotal;
var d_used = used - lastUsed;
@@ -592,6 +590,7 @@ function updateCPU(total, used) {
}
}
+ // Update the saved "last" values
lastTotal = total;
lastUsed = used;
}
OpenPOWER on IntegriCloud