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]}
|
return data and {'mtime':data[0], 'size':data[1]}
|
||||||
|
|
||||||
def update(connection,cursor,path):
|
def update(connection,cursor,path):
|
||||||
timestamp = time.clock()
|
timestamp = time.time()
|
||||||
currentTime = timestamp
|
currentTime = time.clock()
|
||||||
lastTime = currentTime
|
lastTime = currentTime
|
||||||
for d in os.walk(path):
|
for d in os.walk(path):
|
||||||
dirpath=d[0]
|
dirpath=d[0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user