From 70e50b183ded7e3fc6fd64c1a56b29cca3b280ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Sun, 4 Sep 2011 11:55:17 +0200 Subject: [PATCH] =?UTF-8?q?Corrected=20a=20bug=20in=20updatehash.py=20:=20?= =?UTF-8?q?used=20the=20program=20total=20run=20time=20instead=20of=20n?= =?UTF-8?q?=C2=B0=20of=20seconds=20since=20the=20Epoch=20when=20inserting?= =?UTF-8?q?=20the=20timestamp.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- updatehash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updatehash.py b/updatehash.py index f705660..227e3a3 100755 --- 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]