diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-08-21 09:13:57 -0400 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-08-21 09:13:57 -0400 |
commit | b6565b4a09eedf6e548c06861f4599585720379f (patch) | |
tree | 4c6e868b0332f59557c7a60f97d519cab3357541 /src/usr/local/www | |
parent | 25b82b200de7e846066bef3c6a3918592527763f (diff) | |
download | pfsense-b6565b4a09eedf6e548c06861f4599585720379f.zip pfsense-b6565b4a09eedf6e548c06861f4599585720379f.tar.gz |
widget comment fix
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/widgets/widgets/system_information.widget.php | 4 |
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 + '%'); |