aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
authoronefang2019-12-12 13:53:47 +1000
committeronefang2019-12-12 13:53:47 +1000
commitbeef318bc3f330bb45541e59672f349a6cb5233b (patch)
treeb272b6a0cd311b9987e227c8f7d9c28c7d050527 /apt-panopticon.lua
parentRe-arrange the RRD data a little. (diff)
downloadapt-panopticon-beef318bc3f330bb45541e59672f349a6cb5233b.zip
apt-panopticon-beef318bc3f330bb45541e59672f349a6cb5233b.tar.gz
apt-panopticon-beef318bc3f330bb45541e59672f349a6cb5233b.tar.bz2
apt-panopticon-beef318bc3f330bb45541e59672f349a6cb5233b.tar.xz
Some refactoring of the results data handling.
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-xapt-panopticon.lua12
1 files changed, 1 insertions, 11 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index c5b76b3..cd3b38e 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -654,17 +654,7 @@ if 0 < #arg then
654 APT.mirrors = loadfile("results/mirrors.lua")() 654 APT.mirrors = loadfile("results/mirrors.lua")()
655 if nil ~= arg[2] then I(" Using IP " .. arg[2]); ip = arg[2] end 655 if nil ~= arg[2] then I(" Using IP " .. arg[2]); ip = arg[2] end
656 if nil ~= arg[3] then I(" Using file " .. arg[3]); end 656 if nil ~= arg[3] then I(" Using file " .. arg[3]); end
657 657 APT.results = APT.padResults(APT.results)
658 for k, v in pairs{"ftp", "http", "https", "rsync"} do
659 if APT.testing(v) then
660 local tests = {errors = 0; warnings = 0}
661 if APT.testing("Integrity") then tests.Integrity = {errors = 0; warnings = 0} end
662 if APT.testing("Protocol") then tests.Protocol = {errors = 0; warnings = 0} end
663 if APT.testing("Updated") then tests.Updated = {errors = 0; warnings = 0} end
664 if APT.testing("URLSanity") then tests.URLSanity = {errors = 0; warnings = 0} end
665 APT.results[v] = tests
666 end
667 end
668 if APT.origin then 658 if APT.origin then
669 if APT.testing("Integrity") or APT.testing("Updated") then 659 if APT.testing("Integrity") or APT.testing("Updated") then
670 if APT.origin and (APT.options.roundRobin.value ~= pu.host) then 660 if APT.origin and (APT.options.roundRobin.value ~= pu.host) then