]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - actions.py
canonicalize time for accurate sorting
[quix0rs-apt-p2p.git] / actions.py
index ce7bfc6a95c7d3190ccbd20f8d0f6f6fffe35d23..054f886e2b9a4726c150eaa0b7c0dd20b10de565 100644 (file)
@@ -181,7 +181,7 @@ class KeyExpirer:
        reactor.callLater(const.KEINITIAL_DELAY, self.doExpire)
        
     def doExpire(self):
-       self.cut = `time() - const.KE_AGE`
+       self.cut = "%0.6f" % (time() - const.KE_AGE)
        self._expire()
        
     def _expire(self):