diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2014-12-21 20:50:15 +0100 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2014-12-21 20:50:15 +0100 |
commit | a88407b4093d17e5f909e25359e1963754981aca (patch) | |
tree | 3e6374aaa0732dd28449b64ac031ac1aaecccd9e | |
parent | e5e077498d19b426f1b849dd66e9e5555d494fde (diff) |
Allow scraper to use more CPU.
-rw-r--r-- | scrapersources/postliste-oep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scrapersources/postliste-oep b/scrapersources/postliste-oep index ca7ab48..d27fd71 100644 --- a/scrapersources/postliste-oep +++ b/scrapersources/postliste-oep @@ -112,7 +112,7 @@ def cpu_spent(): return getattr(usage, 'ru_utime') + getattr(usage, 'ru_stime') def cpu_available(): - return resource.getrlimit(resource.RLIMIT_CPU)[0]/2 - 1 + return resource.getrlimit(resource.RLIMIT_CPU)[0] def url_from_id(id): return "https://www.oep.no/search/resultSingle.html?journalPostId=" + str(id) |