diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-06 10:10:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-06 10:10:52 +0100 |
commit | 4325ace0ad9a897c973ebfa571f4aa00f39ddc15 (patch) | |
tree | a6defe3eebc0c7a7aae4c2a91390372e54d52c29 /conf/statistic.conf | |
parent | 9a73e8142a2db92b30d5078234a4d50942ce01c3 (diff) | |
parent | e53fd5ab0ce04b6eddb7ef24a1fccfd013c705d0 (diff) | |
download | rspamd-4325ace0ad9a897c973ebfa571f4aa00f39ddc15.tar.gz rspamd-4325ace0ad9a897c973ebfa571f4aa00f39ddc15.zip |
Merge pull request #622 from moisseev/patch-1
[Minor] Fix percent sign in statistics learning condition
Diffstat (limited to 'conf/statistic.conf')
-rw-r--r-- | conf/statistic.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/statistic.conf b/conf/statistic.conf index 513b0c510..f5359f2b0 100644 --- a/conf/statistic.conf +++ b/conf/statistic.conf @@ -57,10 +57,10 @@ return function(task, is_spam, is_unlearn) end if is_unlearn and (not in_class) then - return false,string.format('not in class %s; probability %.2f%%', + return false,string.format('not in class %s; probability %.2f%%%%', cl, math.abs((prob - 0.5) * 200.0)) elseif (not is_unlearn) and in_class then - return false,string.format('already in class %s; probability %.2f%%', + return false,string.format('already in class %s; probability %.2f%%%%', cl, math.abs((prob - 0.5) * 200.0)) end end |