diff --git a/ewma.go b/ewma.go index 7c152a1..694a1d0 100644 --- a/ewma.go +++ b/ewma.go @@ -77,7 +77,7 @@ func (NilEWMA) Update(n int64) {} // of uncounted events and processes them on each tick. It uses the // sync/atomic package to manage uncounted events. type StandardEWMA struct { - uncounted int64 // /!\ this should be the first member to ensure 64-bit alignment + uncounted int64 // /!\ this should be the first member to ensure 64-bit alignment alpha float64 rate float64 init bool diff --git a/graphite_test.go b/graphite_test.go index b49dc4b..c797c78 100644 --- a/graphite_test.go +++ b/graphite_test.go @@ -17,6 +17,6 @@ func ExampleGraphiteWithConfig() { Registry: DefaultRegistry, FlushInterval: 1 * time.Second, DurationUnit: time.Millisecond, - Percentiles: []float64{ 0.5, 0.75, 0.99, 0.999 }, + Percentiles: []float64{0.5, 0.75, 0.99, 0.999}, }) } diff --git a/opentsdb_test.go b/opentsdb_test.go index 6173d61..c437289 100644 --- a/opentsdb_test.go +++ b/opentsdb_test.go @@ -19,4 +19,3 @@ func ExampleOpenTSDBWithConfig() { DurationUnit: time.Millisecond, }) } -