bugfix, if/else
This commit is contained in:
parent
7e1841a244
commit
ad8088f1c1
3
main.go
3
main.go
@ -255,7 +255,6 @@ func processAPIs() {
|
|||||||
nodes = append(nodes, mvNodes...)
|
nodes = append(nodes, mvNodes...)
|
||||||
links = append(links, mvLinks...)
|
links = append(links, mvLinks...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// assemble final struct
|
// assemble final struct
|
||||||
o := output{
|
o := output{
|
||||||
Timestamp: time.Now().Format(iso8601),
|
Timestamp: time.Now().Format(iso8601),
|
||||||
@ -547,7 +546,6 @@ func addmvDevices(d mvDevices) ([]node, []link) {
|
|||||||
Model: mvNode.Model,
|
Model: mvNode.Model,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if mvNode.Location.Latitude == 0 {
|
|
||||||
nodes = append(nodes, node{
|
nodes = append(nodes, node{
|
||||||
Firstseen: mvNode.Firstseen,
|
Firstseen: mvNode.Firstseen,
|
||||||
Lastseen: mvNode.Lastseen,
|
Lastseen: mvNode.Lastseen,
|
||||||
@ -583,7 +581,6 @@ func addmvDevices(d mvDevices) ([]node, []link) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
for i := range d.Links {
|
for i := range d.Links {
|
||||||
mvNode := d.Links[i]
|
mvNode := d.Links[i]
|
||||||
links = append(links, link{
|
links = append(links, link{
|
||||||
|
Loading…
Reference in New Issue
Block a user