]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_dht_Khashmir/actions.py
Switch from the time module to the datetime module.
[quix0rs-apt-p2p.git] / apt_dht_Khashmir / actions.py
index 4214e4eb932580230aa0552a5270d86eba10b124..860205cf87851e0ccb43fb8a29a45ce70d9cc0ec 100644 (file)
@@ -1,8 +1,6 @@
 ## Copyright 2002-2004 Andrew Loewenstern, All Rights Reserved
 # see LICENSE.txt for license information
 
-from time import time
-
 from twisted.internet import reactor
 
 from khash import intify
@@ -263,7 +261,7 @@ class KeyExpirer:
         self.next_expire = reactor.callLater(self.config['KEINITIAL_DELAY'], self.doExpire)
     
     def doExpire(self):
-        self.store.expireValues(time() - self.config['KE_AGE'])
+        self.store.expireValues(self.config['KE_AGE'])
         self.next_expire = reactor.callLater(self.config['KE_DELAY'], self.doExpire)
         
     def shutdown(self):