From d716fb2b64f8535b32c20a6e828c469d4de1dfc6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 18 Sep 2005 03:22:23 +0000 Subject: backout to sleep(1) in between cp_time --- usr/local/www/includes/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www/includes/functions.inc.php') diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php index 79af60c..0ffbb79 100644 --- a/usr/local/www/includes/functions.inc.php +++ b/usr/local/www/includes/functions.inc.php @@ -29,7 +29,7 @@ function get_uptime() { function cpu_usage() { $cpuTicks = explode(" ", `/sbin/sysctl -n kern.cp_time`); - usleep(255); + sleep(1); $cpuTicks2 = explode(" ", `/sbin/sysctl -n kern.cp_time`); $diff = array(); -- cgit v1.1