mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 16:15:56 +00:00
convert to timing stat
This commit is contained in:
parent
7b9472bffe
commit
19ccc192ae
1 changed files with 3 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ package util
|
|||
import (
|
||||
log "github.com/cihub/seelog"
|
||||
"pilosa/config"
|
||||
"time"
|
||||
|
||||
"github.com/cactus/go-statsd-client/statsd"
|
||||
)
|
||||
|
|
@ -45,8 +46,8 @@ func init() {
|
|||
|
||||
func SendTimer(stat string, delta int64) {
|
||||
pstat := "pilosa." + stat
|
||||
milli := delta / time.Millisecond
|
||||
timer <- args{pstat, milli, 1.0}
|
||||
milli := time.Duration(delta) / time.Millisecond
|
||||
timer <- args{pstat, int64(milli), 1.0}
|
||||
}
|
||||
func SendInc(stat string) {
|
||||
pstat := "pilosa." + stat
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue