Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56832fe

Browse files
committed
Better adjustTimeDelay() candidate algorithm
1 parent e61c4c2 commit 56832fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@ def adjustTimeDelay(lastQueryDuration, lowerStdLimit):
19251925
Provides tip for adjusting time delay in time-based data retrieval
19261926
"""
19271927

1928-
candidate = 1 + int(round((1 - (lastQueryDuration - lowerStdLimit) / lastQueryDuration) * conf.timeSec))
1928+
candidate = 1 + int(round(lowerStdLimit))
19291929

19301930
if candidate:
19311931
kb.delayCandidates = [candidate] + kb.delayCandidates[:-1]

0 commit comments

Comments
 (0)