[Phpfreechat-svn] SF.net SVN: phpfreechat: [1084] branches/pfc-comet/misc/flock-tests/ readwrite2.p
Status: Beta
Brought to you by:
kerphi
From: <gpi...@us...> - 2007-08-05 01:42:29
|
Revision: 1084 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1084&view=rev Author: gpinzone Date: 2007-08-04 18:26:12 -0700 (Sat, 04 Aug 2007) Log Message: ----------- Corrected exponential back-off algorithm. Modified Paths: -------------- branches/pfc-comet/misc/flock-tests/readwrite2.php Modified: branches/pfc-comet/misc/flock-tests/readwrite2.php =================================================================== --- branches/pfc-comet/misc/flock-tests/readwrite2.php 2007-08-04 17:33:26 UTC (rev 1083) +++ branches/pfc-comet/misc/flock-tests/readwrite2.php 2007-08-05 01:26:12 UTC (rev 1084) @@ -31,7 +31,7 @@ break; } // If flock is working properly, this will never be reached - $delay = (pow (2, ($i+1)) - 1) * rand(0,5000); // Exponential backoff + $delay = rand(0, pow(2, ($i+1)) - 1) * 5000; // Exponential backoff usleep($delay); } fclose($fh); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |