]> git.proxmox.com Git - pmg-api.git/commit
limit precision of bayes-score in log
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 22 May 2019 15:31:52 +0000 (17:31 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 May 2019 07:16:28 +0000 (09:16 +0200)
commitdca872388d6c05b3380acfb9bc5d1ccefa8f9494
treedaa2d38f7d87d435b56e27a4ed2618bae328b91d
parent26df5d9962e83322867adad976d1392282eacced
limit precision of bayes-score in log

Spamassassin's bayes_score is a float, and is written to the log during
filtering. Limiting the precision for the log to 2 decimal places keeps
logs a bit shorter and also prevents misreadings of values like:
5.55111571207834e-17

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PMG/RuleDB/Spam.pm