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:
parent
2d25a38202
commit
70e50b183d
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user