From 5cd4ad6d74051904f1653a06e790ca166d538184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Wed, 17 Jan 2024 18:41:10 +0300 Subject: [PATCH] d --- Modules/MicX/MicItem/src/MicItem.Shoulds.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/MicX/MicItem/src/MicItem.Shoulds.swift b/Modules/MicX/MicItem/src/MicItem.Shoulds.swift index 69e8cd3..e7b53cf 100644 --- a/Modules/MicX/MicItem/src/MicItem.Shoulds.swift +++ b/Modules/MicX/MicItem/src/MicItem.Shoulds.swift @@ -11,14 +11,14 @@ public extension MicItem { return nil } - static func shouldResetTimeout(_ c: MicItemContext) -> (delay: Int, value: Bool)? { + static func shouldResetTimeout(_ c: MicItemContext) -> TimeInterval? { if c.activityDate.isRecent, let end = c.activityDate.value { - let now = Date() - let timeout = now < end - return (timeout, true) + let timeout = end.timerIntervalSinceNow() + /**/print("ИГР MicIS.shouldRT timeout: '\(timeout)'") + return nil } return nil