mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Ignore software_id = 0 when calculating hosts count (#4080)
This commit is contained in:
parent
58ff55bead
commit
73d4794c55
1 changed files with 1 additions and 0 deletions
|
|
@ -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 := `
|
||||
|
|
|
|||
Loading…
Reference in a new issue