浏览代码

Merge pull request #20 from markchadwick/master

Ensure 64-bit alignment for atomic structures
Richard Crowley 12 年之前
父节点
当前提交
fa5c3e0946
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ewma.go

+ 2 - 2
ewma.go

@@ -22,10 +22,10 @@ type EWMA interface {
 // to manage uncounted events.
 type StandardEWMA struct {
 	alpha     float64
-	init      bool
-	mutex     sync.Mutex
 	rate      float64
 	uncounted int64
+	init      bool
+	mutex     sync.Mutex
 }
 
 // Force the compiler to check that StandardEWMA implements EWMA.