Merge remote-tracking branch 'origin/v0.1'
This commit is contained in:
commit
bc525f2636
@ -5,7 +5,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const TimeFormat = "2006-01-02T15:04:05"
|
||||
const TimeFormat = "2006-01-02T15:04:05-0700"
|
||||
|
||||
type Time struct {
|
||||
time time.Time
|
||||
|
@ -73,6 +73,10 @@ func (nodes *Nodes) Update(nodeID string, res *data.ResponseData) {
|
||||
|
||||
node.Lastseen = now
|
||||
|
||||
if node.Flags !=nil {
|
||||
node.Flags.Online = true
|
||||
}
|
||||
|
||||
// Update neighbours
|
||||
if val := res.Neighbours; val != nil {
|
||||
node.Neighbours = val
|
||||
|
Loading…
Reference in New Issue
Block a user