Reduced New-Line filter Aggressiveness

This commit is contained in:
Tim Schuster 2017-03-16 20:29:21 +01:00
parent bc02972eef
commit ac8cdc0a62
No known key found for this signature in database
GPG Key ID: F9E27097EFB77F61
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ func SpamScore(spam string) (float64, error) {
lines = 1
}
lines = lines / 2
score := float64(len(spam)*lines) / float64(counter.p)
return (score * blScore) / 100, nil