mirror of https://github.com/fail2ban/fail2ban
docs: fix simple typo, litle -> little
There is a small typo in fail2ban/client/fail2banclient.py, fail2ban/server/observer.py. Should read `little` rather than `litle`.pull/2898/head
parent
7d256681a4
commit
3bb19ecc9d
|
@ -230,7 +230,7 @@ class Fail2banClient(Fail2banCmdLine, Thread):
|
||||||
logSys.log(5, ' client phase %s', phase)
|
logSys.log(5, ' client phase %s', phase)
|
||||||
if not stream:
|
if not stream:
|
||||||
return False
|
return False
|
||||||
# wait a litle bit for phase "start-ready" before enter active waiting:
|
# wait a little bit for phase "start-ready" before enter active waiting:
|
||||||
if phase is not None:
|
if phase is not None:
|
||||||
Utils.wait_for(lambda: phase.get('start-ready', None) is not None, 0.5, 0.001)
|
Utils.wait_for(lambda: phase.get('start-ready', None) is not None, 0.5, 0.001)
|
||||||
phase['configure'] = (True if stream else False)
|
phase['configure'] = (True if stream else False)
|
||||||
|
|
|
@ -232,7 +232,7 @@ class ObserverThread(JailThread):
|
||||||
if self._paused:
|
if self._paused:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
## notify event deleted (shutdown) - just sleep a litle bit (waiting for shutdown events, prevent high cpu usage)
|
## notify event deleted (shutdown) - just sleep a little bit (waiting for shutdown events, prevent high cpu usage)
|
||||||
time.sleep(ObserverThread.DEFAULT_SLEEP_INTERVAL)
|
time.sleep(ObserverThread.DEFAULT_SLEEP_INTERVAL)
|
||||||
## stop by shutdown and empty queue :
|
## stop by shutdown and empty queue :
|
||||||
if not self.is_full:
|
if not self.is_full:
|
||||||
|
|
Loading…
Reference in New Issue