chiark / gitweb /
Add +/-0.5s to chat log poll times to make behaviour less clumpy
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 13 Jan 2010 20:38:19 +0000 (20:38 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 13 Jan 2010 20:38:19 +0000 (20:38 +0000)
yoweb-scrape

index b43e5a2..e3a7c8c 100755 (executable)
@@ -974,7 +974,7 @@ def do_track_chat_log(args, bu):
                track.catchup()
                if track.changed():
                        print track
-               sleep(1)
+               sleep(0.5 + 0.5 * random.random())
 
 #----- ship management aid -----