fix *uint64 to uint6

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
pull/2827/head
dongjiang1989 2023-10-17 17:43:19 +08:00
parent 8d92799269
commit 2106c12562
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ func (c *infinibandCollector) Update(ch chan<- prometheus.Metric) error {
c.pushCounter(ch, "vl15_dropped_total", port.Counters.VL15Dropped, port.Name, portStr)
// port.HwCounters
c.pushMetric(ch, "lifespan_millisecond", port.HwCounters.Lifespan, port.Name, portStr, prometheus.GaugeValue)
c.pushMetric(ch, "lifespan_millisecond", *port.HwCounters.Lifespan, port.Name, portStr, prometheus.GaugeValue)
c.pushCounter(ch, "duplicate_request_total", port.HwCounters.DuplicateRequest, port.Name, portStr)
c.pushCounter(ch, "implied_nak_seq_errors_total", port.HwCounters.ImpliedNakSeqErr, port.Name, portStr)