From 3ce2555a35515cd77db62ea61a4fa9c11a18a94f Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Mon, 13 Aug 2012 10:59:01 -0400 Subject: [PATCH] cc-4105: fixed little typo that caused a bug --- .../media-monitor2/media/monitor/eventcontractor.py | 2 +- python_apps/media-monitor2/mm2.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/python_apps/media-monitor2/media/monitor/eventcontractor.py b/python_apps/media-monitor2/media/monitor/eventcontractor.py index 60df874af..c84deb9fa 100644 --- a/python_apps/media-monitor2/media/monitor/eventcontractor.py +++ b/python_apps/media-monitor2/media/monitor/eventcontractor.py @@ -9,7 +9,7 @@ class EventContractor(Loggable): return evt.path in self.store def get_old_event(self, evt): - return evt.store[ evt.path ] + return self.store[ evt.path ] def register(self, evt): if self.event_registered(evt): diff --git a/python_apps/media-monitor2/mm2.py b/python_apps/media-monitor2/mm2.py index 00a133334..998a3901f 100644 --- a/python_apps/media-monitor2/mm2.py +++ b/python_apps/media-monitor2/mm2.py @@ -55,8 +55,8 @@ def main(global_config, api_client_config): log.info(str(e)) watch_syncer = WatchSyncer(signal='watch', - chunking_number=config['chunking_number'], - timeout=config['request_max_wait']) + chunking_number=config['chunking_number'], + timeout=config['request_max_wait']) apiclient = apc.AirtimeApiClient.create_right_config(log=log, config_path=api_client_config) @@ -91,7 +91,7 @@ def main(global_config, api_client_config): # Launch the toucher that updates the last time when the script was # ran every n seconds. tt = ToucherThread(path=config['index_path'], - interval=int(config['touch_interval'])) + interval=int(config['touch_interval'])) pyi = manager.pyinotify() pyi.loop() @@ -107,6 +107,7 @@ Options: --log= log at """ + #original debugging paths #base_path = u'/home/rudi/Airtime/python_apps/media-monitor2/tests' #global_config = os.path.join(base_path, u'live_client.cfg') #api_client_config = global_config