Ignore software_id = 0 when calculating hosts count (#4080)

This commit is contained in:
Martin Angers
2022-02-08 10:59:17 -05:00
committed by GitHub
parent 58ff55bead
commit 73d4794c55
+1
View File
@@ -579,6 +579,7 @@ func (ds *Datastore) CalculateHostsPerSoftware(ctx context.Context, updatedAt ti
queryStmt := `
SELECT count(*), software_id
FROM host_software
WHERE software_id > 0
GROUP BY software_id`
insertStmt := `