diff --git a/pym/calculate/lib/utils/binhosts.py b/pym/calculate/lib/utils/binhosts.py index 63ce5f4..b1cf9af 100644 --- a/pym/calculate/lib/utils/binhosts.py +++ b/pym/calculate/lib/utils/binhosts.py @@ -119,6 +119,7 @@ class BinhostsBase(object): Возвращает таймстам полученный от сервера """ DAY = 60 * 60 * 24 + OUTDATES = 10 * DAY timestamp_file = path.join(binhost, self.ts_path) try: t = time.time() @@ -126,7 +127,7 @@ class BinhostsBase(object): timeout=self.timeout).read().strip() if data.isdigit() and self.last_ts.isdigit(): return (data, int((time.time() - t) * 1000), - t - int(data) < 7 * DAY, + t - int(data) < OUTDATES, int(data) < int(self.last_ts)) except urllib2.URLError as e: pass