Fixed init_time: set it in run(), no more in __init__()

This commit is contained in:
dim 2008-02-16 19:25:40 +00:00
parent 84738febfd
commit f3f931c49e

View File

@ -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)