aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon-report-email-web.lua
diff options
context:
space:
mode:
authoronefang2019-12-13 03:16:12 +1000
committeronefang2019-12-13 03:16:12 +1000
commit018259f210c2e8addd76dd24969803a3529a553d (patch)
tree8c8244c39e65955b3ad56e9935d05374be9dbd22 /apt-panopticon-report-email-web.lua
parentComment++ (diff)
downloadapt-panopticon-018259f210c2e8addd76dd24969803a3529a553d.zip
apt-panopticon-018259f210c2e8addd76dd24969803a3529a553d.tar.gz
apt-panopticon-018259f210c2e8addd76dd24969803a3529a553d.tar.bz2
apt-panopticon-018259f210c2e8addd76dd24969803a3529a553d.tar.xz
Refactor the protocols table.
Diffstat (limited to 'apt-panopticon-report-email-web.lua')
-rwxr-xr-xapt-panopticon-report-email-web.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua
index 382b14d..94f0417 100755
--- a/apt-panopticon-report-email-web.lua
+++ b/apt-panopticon-report-email-web.lua
@@ -49,7 +49,8 @@ local status = function(host, results, typ)
49 local w = 0 49 local w = 0
50 local s = nil ~= APT.mirrors[host].Protocols[typ] 50 local s = nil ~= APT.mirrors[host].Protocols[typ]
51 local to = results.timeout 51 local to = results.timeout
52 if ('http' ~= typ) and ('https' ~= typ) and ('ftp' ~= typ) and ('rsync' ~= typ) then s = true end 52-- if ('http' ~= typ) and ('https' ~= typ) and ('ftp' ~= typ) and ('rsync' ~= typ) then s = true end
53 if not APT.search(APT.protocols, typ) then s = true end
53 if nil ~= results[typ] then 54 if nil ~= results[typ] then
54 e = results[typ].errors 55 e = results[typ].errors
55 w = results[typ].warnings 56 w = results[typ].warnings