From c254d99c3c38cf6e5fd20e5c55d3695d0aa6b8bc Mon Sep 17 00:00:00 2001 From: zty Date: Wed, 21 May 2025 09:52:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20enm=20=E4=BF=AE=E6=94=B9=E9=87=87?= =?UTF-8?q?=E9=9B=86=E4=BF=9D=E5=AD=98=E6=97=B6=E9=97=B4=E5=88=B0=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/enm/services.py b/apps/enm/services.py index eb2f1397..77399bc7 100644 --- a/apps/enm/services.py +++ b/apps/enm/services.py @@ -207,6 +207,8 @@ class MpointCache: set_eq_rs(ep_belong_id, timex, Equipment.OFFLINE) def set(self, last_timex: datetime, last_val): + # last_timex保存到秒 + last_timex = last_timex.replace(microsecond=0) current_cache_val = self.data cache_key = self.cache_key last_data = current_cache_val["last_data"]