From a6648c3645aed4ccc98bfec9a74bbd9054113b92 Mon Sep 17 00:00:00 2001 From: burris Date: Sat, 21 Sep 2002 20:39:14 +0000 Subject: [PATCH] add some default bogus values in __init__ --- node.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/node.py b/node.py index 4d7a977..1e1c0bd 100644 --- a/node.py +++ b/node.py @@ -8,8 +8,9 @@ class Node: def __init__(self): self.fails = 0 - self.lastSeen = time.time() - + self.lastSeen = 0 + self.id = self.host = self.port = '' + def init(self, id, host, port): self.id = id self.int = hash.intify(id) -- 2.39.5