Update notification_events.py

This commit is contained in:
MacRimi
2026-03-06 12:16:06 +01:00
parent ea2763c48c
commit 594ee21fcd
+5 -5
View File
@@ -667,12 +667,12 @@ class JournalWatcher:
# ── Gate 2: 24-hour dedup per device ── # ── Gate 2: 24-hour dedup per device ──
now = time.time() now = time.time()
last_notified = self._disk_io_notified.get(resolved, 0) last_notified = self._disk_io_notified.get(resolved, 0)
if now - last_notified < self._DISK_IO_COOLDOWN: if now - last_notified < self._DISK_IO_COOLDOWN:
return # Already notified for this disk recently return # Already notified for this disk recently
self._disk_io_notified[resolved] = now self._disk_io_notified[resolved] = now
self._save_disk_io_notified(resolved, now) self._save_disk_io_notified(resolved, now)
# ── Build enriched notification ── # ── Build enriched notification ──
device_info = self._identify_block_device(resolved) device_info = self._identify_block_device(resolved)
parts = [] parts = []