Skip to content

Commit a322c07

Browse files
committed
Tweak sp spam detection
1 parent 5aacd23 commit a322c07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/analyzer/sp-spam.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function detectSpSpam(infoLogLines: LogLine[]): SpSpam[] {
1616
let currentSpam: LogLine[] = []
1717

1818
const addCurrentSpamToResult = () => {
19-
if (currentSpam.length === 0) {
19+
if (currentSpam.length < 4) {
2020
return
2121
}
2222
const minimumDurationInMsBetweenSps = currentSpam.reduce((minimumDuration, logLine, index) => {
@@ -60,7 +60,7 @@ export function detectSpSpam(infoLogLines: LogLine[]): SpSpam[] {
6060

6161
return
6262
}
63-
const isTooClose = nextSpLogLine.date.diff(logLine.date, 'ms') < 5000
63+
const isTooClose = nextSpLogLine.date.diff(logLine.date, 'ms') < 3000
6464
if (!isTooClose) {
6565
addCurrentSpamToResult()
6666

0 commit comments

Comments
 (0)