[yum-commits] urlgrabber/grabber.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Tue Jan 15 10:11:48 UTC 2013
urlgrabber/grabber.py | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 1f65e5f210e8452b2f462dafb5bc1082a99ae332
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Tue Jan 15 11:11:25 2013 +0100
clamp timestamps from the future. BZ 894630
diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 44e2848..80b7e0d 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -2381,6 +2381,8 @@ class _TH:
if ug_err is None:
# defer first update if the file was small. BZ 851178.
if not ts and dl_size < 1e6: return
+ # clamp timestamps from the future. BZ 894630.
+ if ts > now: ts = now
# k1: the older, the less useful
# k2: <500ms readings are less reliable
More information about the Yum-commits
mailing list