diff options
| author | onefang | 2019-12-13 03:16:12 +1000 |
|---|---|---|
| committer | onefang | 2019-12-13 03:16:12 +1000 |
| commit | 018259f210c2e8addd76dd24969803a3529a553d (patch) | |
| tree | 8c8244c39e65955b3ad56e9935d05374be9dbd22 /apt-panopticon-report-email-web.lua | |
| parent | Comment++ (diff) | |
| download | apt-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 '')
| -rwxr-xr-x | apt-panopticon-report-email-web.lua | 3 |
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 |
