summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-08-21 09:13:57 -0400
committerSteve Beaver <sbeaver@netgate.com>2017-08-21 09:13:57 -0400
commitb6565b4a09eedf6e548c06861f4599585720379f (patch)
tree4c6e868b0332f59557c7a60f97d519cab3357541 /src
parent25b82b200de7e846066bef3c6a3918592527763f (diff)
downloadpfsense-b6565b4a09eedf6e548c06861f4599585720379f.zip
pfsense-b6565b4a09eedf6e548c06861f4599585720379f.tar.gz
widget comment fix
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/widgets/widgets/system_information.widget.php4
1 files changed, 2 insertions, 2 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 219b0b2..1863416 100644
--- a/src/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/src/usr/local/www/widgets/widgets/system_information.widget.php
@@ -567,12 +567,12 @@ function updateMbufMeter(x) {
function updateCPU(total, 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
+ // Calculate the total ticks and the used ticks since the last time it was checked
var d_total = total - lastTotal;
var d_used = used - lastUsed;
// Convert to percent
- var x = Math.trunc( ((d_total - d_used)/d_total) * 100);
+ var x = Math.trunc(((d_total - d_used)/d_total) * 100);
if ($('#cpumeter')) {
$('[id="cpumeter"]').html(x + '%');
OpenPOWER on IntegriCloud