remove ts
This commit is contained in:
3
main.go
3
main.go
@@ -7,7 +7,6 @@ import (
|
|||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type TF2Stat struct {
|
type TF2Stat struct {
|
||||||
@@ -48,7 +47,7 @@ func main() {
|
|||||||
escapedName = strings.ReplaceAll(escapedName, ",", `\,`)
|
escapedName = strings.ReplaceAll(escapedName, ",", `\,`)
|
||||||
escapedName = strings.ReplaceAll(escapedName, "=", `\=`)
|
escapedName = strings.ReplaceAll(escapedName, "=", `\=`)
|
||||||
// myMeasurement,tag1=value1,tag2=value2 fieldKey="fieldValue" 1556813561098000000
|
// myMeasurement,tag1=value1,tag2=value2 fieldKey="fieldValue" 1556813561098000000
|
||||||
fmt.Printf("tf2server,address=%s,name=%s player=%di,maxplayer=%di,map=%q,ping=%di %d\n", string(ip), escapedName, tStat.NumPlayers, tStat.MaxPlayers, tStat.Map, tStat.Ping, time.Now().UnixMilli())
|
fmt.Printf("tf2server,address=%s,name=%s player=%di,maxplayer=%di,map=%q,ping=%di\n", string(ip), escapedName, tStat.NumPlayers, tStat.MaxPlayers, tStat.Map, tStat.Ping)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user