diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-07-16 01:20:13 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-07-16 01:20:13 +0000 |
commit | 5a76173f9fcd19b06ec72a5f9b1a0828b4742a7e (patch) | |
tree | 39089aed2b6bcbe43f885e23b461373216d6a46f /src | |
parent | 5f12b6d18339f6c6ac0b125fffa19ba43b6303b4 (diff) | |
download | bcfg2-5a76173f9fcd19b06ec72a5f9b1a0828b4742a7e.tar.gz bcfg2-5a76173f9fcd19b06ec72a5f9b1a0828b4742a7e.tar.bz2 bcfg2-5a76173f9fcd19b06ec72a5f9b1a0828b4742a7e.zip |
Fix initial event quiescing
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5333 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/FileMonitor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/FileMonitor.py b/src/lib/Server/FileMonitor.py index c8d49f030..eed31df39 100644 --- a/src/lib/Server/FileMonitor.py +++ b/src/lib/Server/FileMonitor.py @@ -79,11 +79,11 @@ class FileMonitor(object): logger.info("Handled %d events in %.03fs" % (count, (end-start))) def handle_events_in_interval(self, interval): - start = time() - end = start + interval + end = time() + interval while time() < end: if self.pending(): self.handle_event_set() + end = time() + interval else: sleep(0.5) |