2
0
Эх сурвалжийг харах

Update go-metrics package

Ask Bjørn Hansen 11 жил өмнө
parent
commit
f21ae42b78
5 өөрчлөгдсөн 6 нэмэгдсэн , 6 устгасан
  1. 2 2
      metrics.go
  2. 1 1
      monitor.go
  3. 1 1
      serve.go
  4. 1 1
      stathat.go
  5. 1 1
      zone.go

+ 2 - 2
metrics.go

@@ -6,7 +6,7 @@ import (
 	"runtime"
 	"runtime"
 	"time"
 	"time"
 
 
-	metrics "github.com/abh/go-metrics"
+	metrics "github.com/rcrowley/go-metrics"
 )
 )
 
 
 type ServerMetrics struct {
 type ServerMetrics struct {
@@ -37,7 +37,7 @@ func (m *ServerMetrics) Updater(printStatus bool) {
 	if printStatus {
 	if printStatus {
 		go func() {
 		go func() {
 			time.Sleep(2 * time.Second)
 			time.Sleep(2 * time.Second)
-			metrics.Log(metrics.DefaultRegistry, 30, log.New(os.Stderr, "metrics: ", log.Lmicroseconds))
+			metrics.Log(metrics.DefaultRegistry, 30*time.Second, log.New(os.Stderr, "metrics: ", log.Lmicroseconds))
 		}()
 		}()
 	}
 	}
 
 

+ 1 - 1
monitor.go

@@ -14,7 +14,7 @@ import (
 	"time"
 	"time"
 
 
 	"code.google.com/p/go.net/websocket"
 	"code.google.com/p/go.net/websocket"
-	"github.com/abh/go-metrics"
+	"github.com/rcrowley/go-metrics"
 )
 )
 
 
 // Initial status message on websocket
 // Initial status message on websocket

+ 1 - 1
serve.go

@@ -11,7 +11,7 @@ import (
 	"time"
 	"time"
 
 
 	"github.com/abh/dns"
 	"github.com/abh/dns"
-	"github.com/abh/go-metrics"
+	"github.com/rcrowley/go-metrics"
 )
 )
 
 
 func getQuestionName(z *Zone, req *dns.Msg) string {
 func getQuestionName(z *Zone, req *dns.Msg) string {

+ 1 - 1
stathat.go

@@ -6,7 +6,7 @@ import (
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
-	"github.com/abh/go-metrics"
+	"github.com/rcrowley/go-metrics"
 	"github.com/stathat/go"
 	"github.com/stathat/go"
 )
 )
 
 

+ 1 - 1
zone.go

@@ -5,7 +5,7 @@ import (
 	"time"
 	"time"
 
 
 	"github.com/abh/dns"
 	"github.com/abh/dns"
-	"github.com/abh/go-metrics"
+	"github.com/rcrowley/go-metrics"
 )
 )
 
 
 type ZoneOptions struct {
 type ZoneOptions struct {