Fix inotify read timeout
This was off by a factor of 1000, leading to a lot more invocations of the loop body than necessary.
This commit is contained in:
parent
4c6c976f63
commit
6272d94847
@ -342,7 +342,7 @@ class Command(BaseCommand):
|
|||||||
# If files are waiting, need to exit read() to check them
|
# If files are waiting, need to exit read() to check them
|
||||||
# Otherwise, go back to infinite sleep time, but only if not testing
|
# Otherwise, go back to infinite sleep time, but only if not testing
|
||||||
if len(notified_files) > 0:
|
if len(notified_files) > 0:
|
||||||
timeout = inotify_debounce
|
timeout = inotify_debounce * 1000
|
||||||
elif is_testing:
|
elif is_testing:
|
||||||
timeout = self.testing_timeout_ms
|
timeout = self.testing_timeout_ms
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user