chiark / gitweb /
yoweb-scrape: print need_wait with %f
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2011 13:32:58 +0000 (13:32 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2011 13:32:58 +0000 (13:32 +0000)
yoweb-scrape

index 2bcd518..b4a5d63 100755 (executable)
@@ -173,7 +173,7 @@ class Fetcher:
        def _rate_limit_cache_clean(self, now):
                need_wait = self.need_wait(now)
                if need_wait > 0:
-                       debug('Fetcher   wait %d' % need_wait)
+                       debug('Fetcher   wait %f' % need_wait)
                        sleep(need_wait)
 
        def fetch(self, url, max_age):