We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed4e8a5 commit 0b80ab2Copy full SHA for 0b80ab2
1 file changed
src/tasks/BaseDNATask.py
@@ -427,13 +427,13 @@ def tick():
427
multiplier = random.uniform(interval_random_range[0], interval_random_range[1])
428
current_interval = get_interval() * multiplier
429
430
- if now - last_time >= current_interval:
+ if last_time < 0 or now - last_time >= current_interval:
431
last_time = now
432
action()
433
434
def reset():
435
nonlocal last_time
436
- last_time = 0
+ last_time = -1
437
438
def touch():
439
0 commit comments