From d0d29bd0d4b79cd4dc0c6544069c1576f4345837 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 3 Sep 2020 11:33:25 +0200 Subject: [PATCH] improve approximate duration of one month what a silly-sounding commit message --- respodns/ip_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/respodns/ip_info.py b/respodns/ip_info.py index 96b1ab0..a1270e4 100644 --- a/respodns/ip_info.py +++ b/respodns/ip_info.py @@ -7,7 +7,7 @@ from time import time CacheLine = namedtuple("CacheLine", ("time", "code")) header = ["ip", "time", "code"] -one_month = 30 * 24 * 60 * 60 # in seconds +one_month = 365.25 / 12 * 24 * 60 * 60 # in seconds encoding = "latin-1" cache_filepath = "ipinfo_cache.csv"