local buf = {}
table.insert(buf, table.concat({
'default: ', (common['metric_action'] == 'reject') and 'True' or 'False', ' [',
- common['metric_score'][1], ' / ', common['metric_score'][2], ']'
+ string.format('%.2f', common['metric_score'][1]), ' / ', string.format('%.2f', common['metric_score'][2]), ']'
}))
for _, s in ipairs(common.symbols) do
if not s.options then s.options = {} end
table.insert(buf, table.concat({
- ' ', s.name, ' (', s.score, ') [', table.concat(s.options, ','), ']',
+ ' ', s.name, '(', string.format('%.2f', s.score), ')[', table.concat(s.options, ','), ']',
}))
end
add[settings.routines['x-spamd-result'].header] = table.concat(buf, '\n')