ui: include skipped connection count in rendering

This commit is contained in:
Bryan Boreham
2020-01-13 08:53:47 +00:00
parent de3c34ddc6
commit 4c9cf138d6
+8 -1
View File
@@ -101,8 +101,15 @@ func (c *connectionCounters) add(dns report.DNSRecords, outgoing bool, localNode
return
}
count := 1
if countStr, _, ok := srcEndpoint.Latest.LookupEntry(report.ConnectionCount); ok {
if i, err := strconv.Atoi(countStr); err == nil {
count = i
}
}
c.counted[connectionID] = struct{}{}
c.counts[conn]++
c.counts[conn] += count
}
func internetAddr(dns report.DNSRecords, node report.Node, ep report.Node) (string, bool) {