From c8292cf9778974872666a86e28dfc4391597c7b5 Mon Sep 17 00:00:00 2001 From: huoji Date: Sat, 8 Oct 2022 16:52:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=A4=E5=A4=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复两处bug --- Server/statistics.py | 2 ++ sysmon.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/Server/statistics.py b/Server/statistics.py index 3f0354a..4fc5625 100644 --- a/Server/statistics.py +++ b/Server/statistics.py @@ -30,6 +30,8 @@ def update_loged_num(host): } host_list[host]['all_log_num'] += 1 if time.time() - host_list[host]['last_update_time'] > 60: + if host_list[host]['all_log_num'] == 0: + del host_list[host] host_list[host]['last_update_time'] = time.time() host_list[host]['log_num'].append(host_list[host]['all_log_num']) host_list[host]['all_log_num'] = 0 diff --git a/sysmon.xml b/sysmon.xml index 5668696..ba069bd 100644 --- a/sysmon.xml +++ b/sysmon.xml @@ -380,6 +380,7 @@ dasHost.exe DingTalk.exe vmnat.exe + SysEye.exe C:\ProgramData\Microsoft\Windows Defender\Platform\