diff options
-rwxr-xr-x | apt-panopticon.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index def0197..b03810c 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -164,9 +164,12 @@ local log = function(v, t, s, prot, test, host) | |||
164 | t = t .. "(" .. x .. ")" | 164 | t = t .. "(" .. x .. ")" |
165 | if "" ~= prot then | 165 | if "" ~= prot then |
166 | if "" == test then | 166 | if "" == test then |
167 | if nil == results[prot] then results[prot] = {errors = 0; warnings = 0} end | ||
167 | if v == 0 then results[prot].errors = results[prot].errors + 1 end | 168 | if v == 0 then results[prot].errors = results[prot].errors + 1 end |
168 | if v == 1 then results[prot].warnings = results[prot].warnings + 1 end | 169 | if v == 1 then results[prot].warnings = results[prot].warnings + 1 end |
169 | else | 170 | else |
171 | if nil == results[prot] then results[prot] = {errors = 0; warnings = 0} end | ||
172 | if nil == results[prot][test] then results[prot][test] = {errors = 0; warnings = 0} end | ||
170 | if v == 0 then results[prot][test].errors = results[prot][test].errors + 1 end | 173 | if v == 0 then results[prot][test].errors = results[prot][test].errors + 1 end |
171 | if v == 1 then results[prot][test].warnings = results[prot][test].warnings + 1 end | 174 | if v == 1 then results[prot][test].warnings = results[prot][test].warnings + 1 end |
172 | end | 175 | end |