Skip to content

Commit

Permalink
Hopefully a fix to the speedup problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jeorgen committed Feb 2, 2014
1 parent 4bbb565 commit ce82630
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playlogfiletoserver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# By Jorgen Modin jorgen@webworks.se 2012-2014, licensed under the MIT license
import datetime
import time
from generatedrequests import requests as therequests
Expand Down Expand Up @@ -49,7 +50,7 @@ def timetogo(request):
reqtime = request[0]
t = datetime.datetime.now()
now = time.mktime(t.timetuple())
return reqtime + starttime <= now * speedup
return reqtime <= (now - starttime) * speedup


for request in therequests:
Expand Down

0 comments on commit ce82630

Please sign in to comment.