manda solo la data ad influxdb

This commit is contained in:
Miki 2016-04-21 17:37:27 +02:00
parent 1b1736a2e4
commit 9c7006dcea
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ func writeStats(start time.Time, ys time.Time) {
fields := map[string]interface{}{
"LoginOK": idb.CountOK,
"LoginTOT": idb.CountTOT,
"start": ys,
"start": ys.Format(_tformat),
"stop": idb.Stop.Seconds(),
"pipe": idb.Pipe.Nanoseconds(),
"find": idb.Find.Nanoseconds(),

View file

@ -12,7 +12,7 @@ import (
)
const (
_VERSION = "v1.3.2"
_VERSION = "v1.3.3"
_tformat = "2006-01-02"
_24h = (time.Hour * 23) + (time.Minute * 59) + (time.Second * 59)
_10m = (time.Minute * 10)