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 24, 2020
1 parent 5561005 commit 74f16a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/generic/generic.go
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 words 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 words 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 74f16a5

Please sign in to comment.