From: Vladimír Čunát Date: Thu, 13 Aug 2020 11:42:40 +0000 (+0200) Subject: modules/ta_update nitpick: don't call os.time() again X-Git-Tag: v5.2.0~14^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=479ecb54b3a38b983db5ce76d18854ac83f911df;p=thirdparty%2Fknot-resolver.git modules/ta_update nitpick: don't call os.time() again --- diff --git a/modules/ta_update/ta_update.lua b/modules/ta_update/ta_update.lua index 84f7a4a87..c1306ee6b 100644 --- a/modules/ta_update/ta_update.lua +++ b/modules/ta_update/ta_update.lua @@ -102,7 +102,7 @@ local function ta_present(keyset, rr, hold_down_time) elseif not key_revoked then -- First time seen (NewKey) rr.state = key_state.AddPend rr.key_tag = key_tag - rr.timer = os.time() + hold_down_time + rr.timer = now + hold_down_time table.insert(keyset, rr) return false end