Fixes exception due to flow score passed as table

Addresses #4485
This commit is contained in:
Simone Mainardi 2020-09-25 10:03:23 +02:00
parent 87652fe7f7
commit 55e6754d64

View file

@ -138,7 +138,7 @@ for _key, value in ipairs(flows_stats) do
record["breakdown"]["srv2cli"] = (100-cli2srv)
if isScoreEnabled() then
record["score"] = format_utils.formatValue(value["score"])
record["score"] = format_utils.formatValue(value["score"]["flow_score"])
end
if verbose then