aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpyAggr3g470r.py6
1 files changed, 3 insertions, 3 deletions
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
bgstack15