DHT stats now include completed actions and various elapsed times for actions.
[quix0rs-apt-p2p.git] / apt_p2p_Khashmir / krpc.py
index dadf0f25000a6a0aa96eafcc47785ee6a321ad8d..acc5fbf5981e00d6237651ce9d03099bf6256254 100644 (file)
@@ -523,7 +523,8 @@ class KRPC:
         
         # Save the conclusion of the action
         req.addCallbacks(self.stats.responseAction, self.stats.failedAction,
-                         callbackArgs = (method, ), errbackArgs = (method, ))
+                         callbackArgs = (method, datetime.now()),
+                         errbackArgs = (method, datetime.now()))
 
         return req