Skip to content

Commit

Permalink
fix: uint64 alignment in metrics/generic
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Aug 27, 2020
1 parent 5561005 commit aec653a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (

// Counter is an in-memory implementation of a Counter.
type Counter struct {
bits uint64 // bits has to be the first word in order to be 64-aligned on 32-bit
Name string
lvs lv.LabelValues
bits uint64
}

// NewCounter returns a new, usable Counter.
Expand Down Expand Up @@ -81,9 +81,9 @@ func (c *Counter) LabelValues() []string {

// Gauge is an in-memory implementation of a Gauge.
type Gauge struct {
bits uint64 // bits has to be the first word in order to be 64-aligned on 32-bit
Name string
lvs lv.LabelValues
bits uint64
}

// NewGauge returns a new, usable Gauge.
Expand Down

0 comments on commit aec653a

Please sign in to comment.