changed stats to gauage

This commit is contained in:
Todd Gruben 2014-04-11 10:31:32 -05:00
parent 5aba7a4681
commit f42b32cb7c
2 changed files with 3 additions and 8 deletions

View file

@ -9,11 +9,6 @@
"version": "35c98e8c885757fab1824daa77cc0e24bf30e76b",
"type": "git"
},
"github.com/cactus/go-statsd-client/statsd": {
"repo": "github.com/cactus/go-statsd-client",
"version": "912f30c35e9cdf51f50bae24f071e227cca152fb",
"type": "git"
},
"gkvlite": {
"repo": "github.com/steveyen/gkvlite",
"version": "master",
@ -86,7 +81,7 @@
},
"statsd": {
"repo": "github.com/cactus/go-statsd-client/statsd",
"version": "912f30c35e9cdf51f50bae24f071e227cca152fb",
"version": "3999011ef0451eb805b0fa31f98cfb9261bd71be",
"type": "git"
},
"websocket": {

View file

@ -28,7 +28,7 @@ func init() {
for {
select {
case ci := <-count:
stats.Timing(ci.stat, ci.delta, ci.rate)
stats.Gauge(ci.stat, ci.delta, ci.rate)
break
case <-end:
@ -41,7 +41,7 @@ func init() {
}
func SendTimer(stat string, delta int64) {
count <- args{stat, delta, .5}
count <- args{stat, delta, 1.0}
}
func ShutdownStats() {