зеркало из https://github.com/mozilla/MozDef.git
subscribe to attackers-summary in globe and use the indicators instead of events to lesson the data transfer load
This commit is contained in:
Родитель
fb4d53836b
Коммит
14eff597af
|
@ -581,7 +581,7 @@ if (Meteor.isClient) {
|
|||
}
|
||||
else {
|
||||
attackers.find().forEach(function(element,index,array){
|
||||
data.attackers[element.events[0].documentsource.details.sourceipaddress] = {
|
||||
data.attackers[element.indicators[0].ipv4address] = {
|
||||
_id: element._id,
|
||||
coords: [element.geocoordinates.latitude, element.geocoordinates.longitude],
|
||||
score: 0.2+element.score,
|
||||
|
@ -601,7 +601,7 @@ if (Meteor.isClient) {
|
|||
}
|
||||
|
||||
Deps.autorun(function() {
|
||||
Meteor.subscribe("attackers", onReady=function() {
|
||||
Meteor.subscribe("attackers-summary", onReady=function() {
|
||||
waitForGlobe();
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче