Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Casting value to usleep to int.

Closes gh-72.
  • Loading branch information...
commit 360e37e60e40e03859a7a27da93887e1ee1daabf 1 parent b468694
Jaisen Mathai authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 EpiCurl.php
4 EpiCurl.php
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.