From 090165e62f26f5ed937b85d24b97d109c53d6d4c Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 17 Oct 2012 02:36:02 +0200 Subject: [PATCH] Sleep for a bit after every read to not waste an entire core --- crawler/daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crawler/daemon.py b/crawler/daemon.py index 21dc553..a11f009 100644 --- a/crawler/daemon.py +++ b/crawler/daemon.py @@ -67,3 +67,5 @@ while True: print "Skipped '%s' by '%s' (already exists)" % (s_title, s_authors) else: print "Unrecognized command: %s" % message_type + + time.sleep(0.05)