chg: [correlations] reverted the division by 2 for the correlation counts

- there are legitimate cases where we get one way correlations
  - we use the value field to aggregate the count, which leads to it being incorrect when using advanced correlations (the reverse correlation will use the value of the remote side)
pull/7377/head
iglocska 2021-04-27 08:41:41 +02:00
parent 81c2d01bcd
commit a0b1d0964e
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ class Correlation extends AppModel
$results[] = [
'Correlation' => [
'value' => $value,
'count' => $count / 2,
'count' => $count,
'excluded' => $this->redis->sismember('misp:correlation_exclusions', $value)
]
];