From 56832fe9c43dc31a1f70b8c359a14edb6f46b918 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 11 Oct 2012 14:23:53 +0200 Subject: [PATCH] Better adjustTimeDelay() candidate algorithm --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 3e4629500..eb56c0798 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1925,7 +1925,7 @@ def adjustTimeDelay(lastQueryDuration, lowerStdLimit): Provides tip for adjusting time delay in time-based data retrieval """ - candidate = 1 + int(round((1 - (lastQueryDuration - lowerStdLimit) / lastQueryDuration) * conf.timeSec)) + candidate = 1 + int(round(lowerStdLimit)) if candidate: kb.delayCandidates = [candidate] + kb.delayCandidates[:-1]