Skip to content

Commit

Permalink
fix *uint64 to uint6
Browse files Browse the repository at this point in the history
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
  • Loading branch information
dongjiang1989 committed Oct 17, 2023
1 parent 8d92799 commit 2106c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/infiniband_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2106c12

Please sign in to comment.