From f3f931c49efcc6fdc8ac344ee6720dcd3f7d2de7 Mon Sep 17 00:00:00 2001 From: dim Date: Sat, 16 Feb 2008 19:25:40 +0000 Subject: [PATCH] Fixed init_time: set it in run(), no more in __init__() --- pgloader/pgloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pgloader/pgloader.py b/pgloader/pgloader.py index 6ed50c4..fa7060d 100644 --- a/pgloader/pgloader.py +++ b/pgloader/pgloader.py @@ -83,7 +83,7 @@ class PGLoader(threading.Thread): self.config_errors = 0 self.errors = 0 self.updates = 0 - self.init_time = time.time() + self.init_time = None # we may have to open several clob files while parsing the # unload data file, hence we keep track of them all @@ -780,6 +780,7 @@ class PGLoader(threading.Thread): # tell parent thread we are running now self.started.set() + self.init_time = time.time() # Announce the beginning of the work self.log.debug("%s processing" % self.logname)