diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-15 05:49:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-15 05:49:02 +0000 |
commit | 85c54575bcb8deb97911bf46ecb4306a65d8c687 (patch) | |
tree | ae92e6f3c6c14d7e552aea90996f9ab68733f963 /usr/local | |
parent | 07bcf7d19261563001e8e7ae2778ce211186d373 (diff) | |
download | pfsense-85c54575bcb8deb97911bf46ecb4306a65d8c687.zip pfsense-85c54575bcb8deb97911bf46ecb4306a65d8c687.tar.gz |
Correct cpu meters
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/includes/functions.inc.php | 2 | ||||
-rw-r--r-- | usr/local/www/javascript/index/sajax.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php index 15ed51d..7202df8 100644 --- a/usr/local/www/includes/functions.inc.php +++ b/usr/local/www/includes/functions.inc.php @@ -36,7 +36,7 @@ function get_uptime() { */ function cpu_usage() { - usleep(250); + sleep(5); $cpuTicks = explode(" ", `/sbin/sysctl -n kern.cp_time`); sleep(1); $cpuTicks2 = explode(" ", `/sbin/sysctl -n kern.cp_time`); diff --git a/usr/local/www/javascript/index/sajax.js b/usr/local/www/javascript/index/sajax.js index 9067b3f..715418d 100644 --- a/usr/local/www/javascript/index/sajax.js +++ b/usr/local/www/javascript/index/sajax.js @@ -6,7 +6,7 @@ function updateMeters() x_get_pfstate(updateState); x_get_temp(updateTemp); - window.setTimeout('updateMeters()', 5000); + window.setTimeout('updateMeters()', 10000); } function updateMemory(x) @@ -44,4 +44,4 @@ function updateState(x) document.getElementById("pfstate").value = x; } -window.setTimeout('updateMeters()', 5000); +window.setTimeout('updateMeters()', 10000); |