aggiunge la data di inserimento
This commit is contained in:
parent
6271820f33
commit
4a160cf55b
3 changed files with 3 additions and 1 deletions
|
@ -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
1
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 {
|
||||
|
|
2
main.go
2
main.go
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
_VERSION = "v2.7.0"
|
||||
_VERSION = "v2.7.1"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Add table
Reference in a new issue