diff options
Diffstat (limited to 'src/lib/Server/FileMonitor.py')
-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) |