diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-15 18:17:02 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-15 18:17:02 +0000 |
commit | 44ebea556a502684a63f4619ac341f50f165df0f (patch) | |
tree | 2fe41ac7e14f4deffa60183cdf7131b226ed7b6f /src/rspamadm/fuzzy_stat.lua | |
parent | 0b331fa3e66f0ff413af988a967808f61a6e7e83 (diff) | |
download | rspamd-44ebea556a502684a63f4619ac341f50f165df0f.tar.gz rspamd-44ebea556a502684a63f4619ac341f50f165df0f.zip |
Fix output
Diffstat (limited to 'src/rspamadm/fuzzy_stat.lua')
-rw-r--r-- | src/rspamadm/fuzzy_stat.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rspamadm/fuzzy_stat.lua b/src/rspamadm/fuzzy_stat.lua index d0d59532d..c7a9b49b6 100644 --- a/src/rspamadm/fuzzy_stat.lua +++ b/src/rspamadm/fuzzy_stat.lua @@ -31,7 +31,12 @@ local function add_data(target, src) target[k] = v end else - target[k] = v + if not target['ips'] then target['ips'] = {} end + -- Iterate over IPs + for ip,st in pairs(v) do + if not target['ips'][ip] then target['ips'][ip] = {} end + add_data(target['ips'][ip], st) + end end end end |