Skip to content

Commit

Permalink
Merge pull request #274 from RichardoMrMu/main
Browse files Browse the repository at this point in the history
fix: metricsMap init
  • Loading branch information
Lyt99 authored May 11, 2024
2 parents 63a7471 + 41254c9 commit a032337
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const (
var (
metrics = []string{TXLAT_QDISC_SLOW, TXLAT_NETDEV_SLOW}
probeName = "netiftxlat"
_netifTxlatencyProbe = &netifTxlatencyProbe{}
_netifTxlatencyProbe = &netifTxlatencyProbe{
metricsMap: make(map[string]map[uint32]uint64),
}
)

func init() {
Expand Down

0 comments on commit a032337

Please sign in to comment.