Set min and max waits to something closer to the master repo

This commit is contained in:
Elizabeth Byerly 2019-05-22 10:22:58 -04:00
parent 3a12c74af3
commit 6e6db3b7e5

View file

@ -75,7 +75,7 @@ def checkout(l):
class UserBehavior(TaskSet): class UserBehavior(TaskSet):
min_wait = 500 min_wait = 500
max_wait = 1500 max_wait = 15000
tasks = {index: 1, tasks = {index: 1,
setCurrency: 2, setCurrency: 2,
@ -88,8 +88,11 @@ class UserBehavior(TaskSet):
index(self) index(self)
def wait_function(self): def wait_function(self):
# Compute user's activity rate (wait time between actions) so traffic is """Wait time between user activity is diurnal.
# diurnal; minimum at hrs=0.0|24.0 and maximum at hrs=12.0.
Compute user's activity rate (wait time between actions) so traffic is
minimum at hrs=0.0|24.0 and maximum at hrs=12.0.
"""
now = time.localtime() now = time.localtime()
hrs = now.tm_hour + now.tm_min/60.0 hrs = now.tm_hour + now.tm_min/60.0
# Compute scale factor is between 0 and 1. # Compute scale factor is between 0 and 1.