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:
Michael Gmelin 2024-02-23 18:52:37 +01:00
parent 4c6c976f63
commit 6272d94847

View File

@ -342,7 +342,7 @@ class Command(BaseCommand):
# If files are waiting, need to exit read() to check them
# Otherwise, go back to infinite sleep time, but only if not testing
if len(notified_files) > 0:
timeout = inotify_debounce
timeout = inotify_debounce * 1000
elif is_testing:
timeout = self.testing_timeout_ms
else: