Corrected a bug in updatehash.py : used the program total run time instead of n° of seconds since the Epoch when inserting the timestamp.

This commit is contained in:
Georges Dupéron 2011-09-04 11:55:17 +02:00
parent 2d25a38202
commit 70e50b183d

View File

@ -32,8 +32,8 @@ def cacheFileInfo(cursor, path):
return data and {'mtime':data[0], 'size':data[1]}
def update(connection,cursor,path):
timestamp = time.clock()
currentTime = timestamp
timestamp = time.time()
currentTime = time.clock()
lastTime = currentTime
for d in os.walk(path):
dirpath=d[0]