From 594ee21fcd2d102b9bad3196d106786933dea08c Mon Sep 17 00:00:00 2001 From: MacRimi Date: Fri, 6 Mar 2026 12:16:06 +0100 Subject: [PATCH] Update notification_events.py --- AppImage/scripts/notification_events.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/AppImage/scripts/notification_events.py b/AppImage/scripts/notification_events.py index 9aa14820..1dfe14d9 100644 --- a/AppImage/scripts/notification_events.py +++ b/AppImage/scripts/notification_events.py @@ -667,12 +667,12 @@ class JournalWatcher: # ── Gate 2: 24-hour dedup per device ── now = time.time() last_notified = self._disk_io_notified.get(resolved, 0) - if now - last_notified < self._DISK_IO_COOLDOWN: - return # Already notified for this disk recently - self._disk_io_notified[resolved] = now - self._save_disk_io_notified(resolved, now) - - # ── Build enriched notification ── + if now - last_notified < self._DISK_IO_COOLDOWN: + return # Already notified for this disk recently + self._disk_io_notified[resolved] = now + self._save_disk_io_notified(resolved, now) + + # ── Build enriched notification ── device_info = self._identify_block_device(resolved) parts = []