mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 18:25:22 +03:00
Formatting
This commit is contained in:
parent
5dd088f8e5
commit
0534f63e8a
@ -330,7 +330,9 @@ class FrigateApp:
|
|||||||
self.stats_emitter.start()
|
self.stats_emitter.start()
|
||||||
|
|
||||||
def start_watchdog(self) -> None:
|
def start_watchdog(self) -> None:
|
||||||
self.frigate_watchdog = FrigateWatchdog(self.config, self.detectors, self.stop_event)
|
self.frigate_watchdog = FrigateWatchdog(
|
||||||
|
self.config, self.detectors, self.stop_event
|
||||||
|
)
|
||||||
self.frigate_watchdog.start()
|
self.frigate_watchdog.start()
|
||||||
|
|
||||||
def check_shm(self) -> None:
|
def check_shm(self) -> None:
|
||||||
|
|||||||
@ -13,7 +13,12 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
class FrigateWatchdog(threading.Thread):
|
class FrigateWatchdog(threading.Thread):
|
||||||
def __init__(self, config: FrigateConfig, detectors: dict[str, ObjectDetectProcess], stop_event: MpEvent):
|
def __init__(
|
||||||
|
self,
|
||||||
|
config: FrigateConfig,
|
||||||
|
detectors: dict[str, ObjectDetectProcess],
|
||||||
|
stop_event: MpEvent,
|
||||||
|
):
|
||||||
threading.Thread.__init__(self)
|
threading.Thread.__init__(self)
|
||||||
self.name = "frigate_watchdog"
|
self.name = "frigate_watchdog"
|
||||||
self.config = config
|
self.config = config
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user