Skip to content

Commit

Permalink
If connection count is zero use the estimated connection count
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouzierinverse committed Feb 13, 2025
1 parent c1bdc48 commit 060f902
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/cron/aggregator.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package maint

import (
"cmp"
"context"
"database/sql"
"fmt"
Expand Down Expand Up @@ -476,7 +477,7 @@ loop:
}
}

networkEvent.Count = int(connectionCount)
networkEvent.Count = cmp.Or(int(connectionCount), len(ports))
if startTime != 0 {
networkEvent.StartTime = uint64(startTime)
}
Expand Down

0 comments on commit 060f902

Please sign in to comment.