diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2016-04-07 10:31:56 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2016-04-07 10:31:56 +0200 |
commit | d45db738af7f9b2775e9d5e367936afc7e1a109a (patch) | |
tree | e55e310fe55a47181f03122c5a989e6bc9e96418 | |
parent | d4c6a6b4d635ab1b883521c473275a056e6f2b2e (diff) |
Allow OEP scraper to run longer when no CPU limit is set.
-rw-r--r-- | scrapersources/postliste-oep | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scrapersources/postliste-oep b/scrapersources/postliste-oep index 5b5b259..c6e6bc6 100644 --- a/scrapersources/postliste-oep +++ b/scrapersources/postliste-oep @@ -113,10 +113,10 @@ def cpu_spent(): def cpu_available(): available = resource.getrlimit(resource.RLIMIT_CPU)[0] - # If no limit is set, assume 10 CPU seconds as the limit to avoid + # If no limit is set, assume 20 CPU seconds as the limit to avoid # running for more than a few minutes every time. if 0 > available: - available = 10 + available = 20 return available def url_from_id(id): |