diff --git a/consumer.go b/consumer.go index c66d707..5356ee9 100644 --- a/consumer.go +++ b/consumer.go @@ -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") { diff --git a/dbs.go b/dbs.go index 7c6b194..f212c33 100644 --- a/dbs.go +++ b/dbs.go @@ -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 { diff --git a/main.go b/main.go index 07f9b1c..cbf31e0 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,7 @@ import ( ) const ( - _VERSION = "v2.7.0" + _VERSION = "v2.7.1" ) var (