29 lines
889 B
Diff
29 lines
889 B
Diff
From c4e6df14e518206ee9f4de55b3ba45f9f6632d1b Mon Sep 17 00:00:00 2001
|
|
From: gongzt <gong_zhengtang@163.com>
|
|
Date: Mon, 23 Oct 2023 15:39:44 +0800
|
|
Subject: Fixed the problem that the number of hosts in the cve list repeated statistics
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
database/apollo.sql | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/database/apollo.sql b/database/apollo.sql
|
|
index a87f85c..b79707b 100644
|
|
--- a/database/apollo.sql
|
|
+++ b/database/apollo.sql
|
|
@@ -130,7 +130,7 @@ BEGIN
|
|
DROP TABLE IF EXISTS cve_host_user_count;
|
|
SET @tmp_cve_host_count_sql = 'CREATE TEMPORARY TABLE cve_host_user_count SELECT
|
|
cve_id,
|
|
- COUNT(host_id) AS host_num
|
|
+ COUNT(DISTINCT host_id) AS host_num
|
|
FROM
|
|
cve_host_match FORCE INDEX (ix_cve_host_match_host_id)
|
|
WHERE 1=1 ';
|
|
--
|
|
Gitee
|
|
|