Skip to content
This repository has been archived by the owner on Dec 27, 2019. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilmar Pupo committed Mar 9, 2012
1 parent 0b11ae1 commit fe80814
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CamelSpider/Spider/AbstractSpider.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ protected function getTimeUsage($type = 'total')
return round(microtime(true) - $this->time[$type]);
}

/**
* Checl if memory or requests is reached
*/
protected function checkLimit()
{
if ($this->limitReached) {
Expand All @@ -478,7 +481,7 @@ protected function checkLimit()
if(
$this->requests >= $this->getConfig(
'requests_limit',
isset($_SERVER['HTTP_HOST']) ? 20 : 100
isset($_SERVER['HTTP_HOST']) ? 15 : 60
)
){
$this->limitReached = true;
Expand Down

0 comments on commit fe80814

Please sign in to comment.