Modified a commented directive
This commit is contained in:
parent
982569acd6
commit
2a511daa27
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ function curl($url,$napid=null,$headers=null,$postdata=null,$conntimeout=null,$f
|
|||
if ($sdate===false) break;
|
||||
} elseif (preg_match('#^x-ratelimit-remaining: (\d+)$#i',$header,$matches)===1) {
|
||||
$rlrem=$matches[1]+0;
|
||||
// echo "Ratelimit-remaining: {$rlrem}\n";
|
||||
// echo "«{$url}»: Ratelimit-remaining: {$rlrem}\n";
|
||||
} elseif (preg_match('#^x-ratelimit-reset: (.*)$#i',$header,$matches)===1) {
|
||||
$rlres=@strtotime($matches[1]);
|
||||
if ($rlres===false) break;
|
||||
|
|
Loading…
Reference in a new issue