commit 70e50b183ded7e3fc6fd64c1a56b29cca3b280ea
parent 2d25a38202e9c99446b4fe6b2b88d92a9bd2acdc
Author: Georges Dupéron <jahvascriptmaniac+github@free.fr>
Date: Sun, 4 Sep 2011 11:55:17 +0200
Corrected a bug in updatehash.py : used the program total run time instead of n° of seconds since the Epoch when inserting the timestamp.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/updatehash.py b/updatehash.py
@@ -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]