Browse Source

gofmt pass

mihasya 10 years ago
parent
commit
1e6be82bd1
3 changed files with 2 additions and 3 deletions
  1. 1 1
      ewma.go
  2. 1 1
      graphite_test.go
  3. 0 1
      opentsdb_test.go

+ 1 - 1
ewma.go

@@ -77,7 +77,7 @@ func (NilEWMA) Update(n int64) {}
 // of uncounted events and processes them on each tick.  It uses the
 // of uncounted events and processes them on each tick.  It uses the
 // sync/atomic package to manage uncounted events.
 // sync/atomic package to manage uncounted events.
 type StandardEWMA struct {
 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
 	alpha     float64
 	rate      float64
 	rate      float64
 	init      bool
 	init      bool

+ 1 - 1
graphite_test.go

@@ -17,6 +17,6 @@ func ExampleGraphiteWithConfig() {
 		Registry:      DefaultRegistry,
 		Registry:      DefaultRegistry,
 		FlushInterval: 1 * time.Second,
 		FlushInterval: 1 * time.Second,
 		DurationUnit:  time.Millisecond,
 		DurationUnit:  time.Millisecond,
-		Percentiles: []float64{ 0.5, 0.75, 0.99, 0.999 },
+		Percentiles:   []float64{0.5, 0.75, 0.99, 0.999},
 	})
 	})
 }
 }

+ 0 - 1
opentsdb_test.go

@@ -19,4 +19,3 @@ func ExampleOpenTSDBWithConfig() {
 		DurationUnit:  time.Millisecond,
 		DurationUnit:  time.Millisecond,
 	})
 	})
 }
 }
-