From 2c7e00f02a7d128123000803286a88a3a78b5da2 Mon Sep 17 00:00:00 2001 From: eblade Date: Thu, 30 Jul 2009 17:29:57 -0400 Subject: [PATCH] fpdb_import: use stat_info.st_size instead of stat_info.st_mtime to determine hh file updates --- pyfpdb/fpdb_import.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index ed87731b..9d76be69 100644 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -271,11 +271,11 @@ class Importer: try: lastupdate = self.updated[file] #rulog.writelines("lastupdate = %d, mtime = %d" % (lastupdate,stat_info.st_mtime)) - if stat_info.st_mtime > lastupdate: + if stat_info.st_size > lastupdate: #stat_info.st_mtime > lastupdate: self.import_file_dict(file, self.filelist[file][0], self.filelist[file][1]) - self.updated[file] = time() + self.updated[file] = stat_info.st_size #time() except: - self.updated[file] = time() + self.updated[file] = stat_info.st_size #time() # If modified in the last minute run an immediate import. # This codepath only runs first time the file is found. if os.path.isdir(file) or (time() - stat_info.st_mtime) < 60: