Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug with rate limiting.

  • Loading branch information...
commit 2f546d42e8c6eb6c4a2767eb30eda942658a5c67 1 parent 842f81b
@nathan-osman authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  generate.php
View
1  generate.php
@@ -46,6 +46,7 @@ private function FetchDOM($url, $query=null)
$diff = microtime(TRUE) - $this->last_request;
if($diff < 0.5)
usleep((0.5 - $diff) * 1000000);
+ $this->last_request = microtime(TRUE);
curl_setopt($this->curl_handle, CURLOPT_URL, $url);
curl_setopt($this->curl_handle, CURLOPT_USERAGENT, self::UserAgent);
Please sign in to comment.
Something went wrong with that request. Please try again.