Browse files

Casting value to usleep to int.

Closes gh-72.
  • Loading branch information...
1 parent b468694 commit 360e37e60e40e03859a7a27da93887e1ee1daabf @jmathai committed Sep 24, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 EpiCurl.php
View
4 EpiCurl.php
@@ -79,14 +79,14 @@ public function getResult($key = null)
$innerSleepInt = $outerSleepInt = 1;
while($this->running && ($this->execStatus == CURLM_OK || $this->execStatus == CURLM_CALL_MULTI_PERFORM))
{
- usleep($outerSleepInt);
+ usleep(intval($outerSleepInt));
$outerSleepInt = intval(max(1, ($outerSleepInt*$this->sleepIncrement)));
$ms=curl_multi_select($this->mc, 0);
if($ms > 0)
{
do{
$this->execStatus = curl_multi_exec($this->mc, $this->running);
- usleep($innerSleepInt);
+ usleep(intval($innerSleepInt));
$innerSleepInt = intval(max(1, ($innerSleepInt*$this->sleepIncrement)));
}while($this->execStatus==CURLM_CALL_MULTI_PERFORM);
$innerSleepInt = 1;

0 comments on commit 360e37e

Please sign in to comment.