From 57fd3331324ca5bc26cf849ddd11cf74011f598c Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Mon, 5 Jul 2010 11:52:30 +0200 Subject: Release 1.5. (+ a minor bug fix.) --- pyAggr3g470r.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyAggr3g470r.py') diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 78ce5390..9fee1896 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -886,16 +886,16 @@ class Root: installed. """ time.sleep(10) - old_size = 0 + old_time = 0 try: print "Watching %s" % utils.sqlite_base while True: time.sleep(2) # very simple test - if os.path.getsize(utils.sqlite_base) != old_size: + if os.path.getmtime(utils.sqlite_base) != old_time: print "The base of feeds (%s) has changed.\nReloading..." % utils.sqlite_base self.update() - old_size = os.path.getsize(utils.sqlite_base) + old_time = os.path.getmtime(utils.sqlite_base) except KeyboardInterrupt: pass print "Stop watching", utils.sqlite_base -- cgit