aggiunge la data di inserimento

This commit is contained in:
Miki 2016-05-13 13:28:04 +02:00
parent 6271820f33
commit 4a160cf55b
3 changed files with 3 additions and 1 deletions

View file

@ -66,6 +66,7 @@ func consumer(id int) {
Protocol: sval[0],
Ip: sval[2],
Date: time.Unix(date, 0),
Insert: time.Now(),
}
if opts.Month != ml.Date.Format("0601") {

1
dbs.go
View file

@ -33,6 +33,7 @@ type MongoLogin struct {
Protocol string `json:"protocol"`
Ip string `json:"ip"`
Date time.Time `json:"date"`
Insert time.Time `json:"insert"`
}
type Ips struct {

View file

@ -11,7 +11,7 @@ import (
)
const (
_VERSION = "v2.7.0"
_VERSION = "v2.7.1"
)
var (