Permalink
Browse files

Allow subsecond delays for lock_wait().

  • Loading branch information...
elliotttf committed Sep 23, 2013
1 parent b8fae76 commit 2cd4323946987608a660694df2c02f3cb4cce6c3
Showing with 1 addition and 1 deletion.
  1. +1 −1 includes/lock.inc
View
@@ -214,7 +214,7 @@ function lock_wait($name, $delay = 30) {
// $delay is passed in seconds, but we will be using usleep(), which takes
// microseconds as a parameter. Multiply it by 1 million so that all
// further numbers are equivalent.
- $delay = (int) $delay * 1000000;
+ $delay = (int) ($delay * 1000000);
// Begin sleeping at 25ms.
$sleep = 25000;

0 comments on commit 2cd4323

Please sign in to comment.