Skip to content

Commit

Permalink
Merge pull request #184 from BSWANG/main
Browse files Browse the repository at this point in the history
fix virtiocmd metrics null
  • Loading branch information
Lyt99 authored Feb 5, 2024
2 parents 487df84 + bea29b4 commit 5b2a84d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/exporter/probe/tracevirtcmdlat/tracevirtcmdlat.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ const (
var (
metrics = []string{VIRTCMD100MS, VIRTCMD}
_virtcmdLatencyProbe = &virtcmdLatencyProbe{
metricsMap: make(map[string]map[uint32]uint64),
metricsMap: map[string]map[uint32]uint64{
VIRTCMD: {0: 0},
VIRTCMD100MS: {0: 0},
},
}
)

Expand Down

0 comments on commit 5b2a84d

Please sign in to comment.