diff options
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-x | pyAggr3g470r.py | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 3b758484..1663d70c 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -871,25 +871,25 @@ class Root: del mon - def watch_base_classic(self): - """ - Monitor the base of feeds if the module gamin is not - installed. - """ - time.sleep(10) - old_size = 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: - print "The base of feeds (%s) has changed.\nReloading..." % utils.sqlite_base - self.update() - old_size = os.path.getsize(utils.sqlite_base) - except KeyboardInterrupt: - pass - print "Stop watching", utils.sqlite_base + def watch_base_classic(self): + """ + Monitor the base of feeds if the module gamin is not + installed. + """ + time.sleep(10) + old_size = 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: + print "The base of feeds (%s) has changed.\nReloading..." % utils.sqlite_base + self.update() + old_size = os.path.getsize(utils.sqlite_base) + except KeyboardInterrupt: + pass + print "Stop watching", utils.sqlite_base if __name__ == '__main__': |