Skip to content

Commit

Permalink
fix virtiocmd metrics null
Browse files Browse the repository at this point in the history
Signed-off-by: bingshen.wbs <[email protected]>
  • Loading branch information
BSWANG committed Feb 4, 2024
1 parent 8ef3e25 commit e954ec3
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 e954ec3

Please sign in to comment.