mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-28 14:10:40 +00:00
Update notification_events.py
This commit is contained in:
@@ -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 = []
|
||||||
|
|||||||
Reference in New Issue
Block a user