Display DHT statistics to the HTTP user.
[quix0rs-apt-p2p.git] / apt_p2p_Khashmir / stats.py
index 7a40adb28894f98845ad27a5c586a964e976dcc1..aeb979efea6cbbeb3d375cc21ff5de587ece23c6 100644 (file)
@@ -171,9 +171,9 @@ class StatsLogger:
         for stat in stats:
             val = getattr(self, stat['name'], None)
             if stat['name'] == 'uptime':
-                stat['value'] = dattime.now() - self.startTime
+                stat['value'] = datetime.now() - self.startTime
             elif stat['name'] == 'actions':
-                stat['value'] = deepcopy(actions)
+                stat['value'] = deepcopy(self.actions)
             elif val is not None:
                 stat['value'] = val