cvs: phpweb /include loadavg.inc

From: Date: Sat, 18 Feb 2006 05:44:33 +0000
Subject: cvs: phpweb /include loadavg.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-30625@lists.php.net to get a copy of this message
rasmus Sat Feb 18 05:44:33 2006 UTC Modified files: /phpweb/include loadavg.inc Log: Switch to use sys_getloadavg() http://cvs.php.net/viewcvs.cgi/phpweb/include/loadavg.inc?r1=1.11&r2=1.12&diff_format=u Index: phpweb/include/loadavg.inc diff -u phpweb/include/loadavg.inc:1.11 phpweb/include/loadavg.inc:1.12 --- phpweb/include/loadavg.inc:1.11 Wed Aug 13 16:03:21 2003 +++ phpweb/include/loadavg.inc Sat Feb 18 05:44:33 2006 @@ -1,12 +1,12 @@ <?php # vim:ft=php -// $Id: loadavg.inc,v 1.11 2003/08/13 16:03:21 goba Exp $ +// $Id: loadavg.inc,v 1.12 2006/02/18 05:44:33 rasmus Exp $ /* Offload to the visitor's nearest mirror if the load is too high. - The used getloadavg() function is currently only available on - the www.php.net machine. + The used sys_getloadavg() function is currently only available in + the latest PHP 5.1 versions */ @@ -16,12 +16,12 @@ global $COUNTRY, $MIRRORS; // We cannot check the load here - if (!function_exists("getloadavg")) { + if (!function_exists("sys_getloadavg")) { return; } // Get load and print it out in header - $load = getloadavg(); + $load = sys_getloadavg(); header("X-PHP-Load: " . implode(", ", $load)); $load = $load[0];

« previous php.mirrors (#30625) next »