diff options
author | onefang | 2019-12-31 16:20:14 +1000 |
---|---|---|
committer | onefang | 2019-12-31 16:20:14 +1000 |
commit | 91b6eba0f7c4fd44dd79f0e868bb9e7a92bccce7 (patch) | |
tree | cdbbf301d0f20228de66cad65e218386c67317a0 /apt-panopticon-report-email-web.lua | |
parent | Check if reference packages are still current. (diff) | |
download | apt-panopticon-91b6eba0f7c4fd44dd79f0e868bb9e7a92bccce7.zip apt-panopticon-91b6eba0f7c4fd44dd79f0e868bb9e7a92bccce7.tar.gz apt-panopticon-91b6eba0f7c4fd44dd79f0e868bb9e7a92bccce7.tar.bz2 apt-panopticon-91b6eba0f7c4fd44dd79f0e868bb9e7a92bccce7.tar.xz |
Add Redirects tests fully.
Diffstat (limited to 'apt-panopticon-report-email-web.lua')
-rwxr-xr-x | apt-panopticon-report-email-web.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua index 05699ee..3365d78 100755 --- a/apt-panopticon-report-email-web.lua +++ b/apt-panopticon-report-email-web.lua | |||
@@ -212,7 +212,8 @@ end | |||
212 | 212 | ||
213 | local makeTable = function(web, hosts) | 213 | local makeTable = function(web, hosts) |
214 | web:write("<table>\n<tr><th></th><th>" .. lnk('FTP') .. "</th><th>" .. lnk('HTTP') .. "</th><th>" .. lnk('HTTPS') .. "</th><th>" .. lnk('RSYNC') .. "</th>" .. | 214 | web:write("<table>\n<tr><th></th><th>" .. lnk('FTP') .. "</th><th>" .. lnk('HTTP') .. "</th><th>" .. lnk('HTTPS') .. "</th><th>" .. lnk('RSYNC') .. "</th>" .. |
215 | "<th>" .. lnk('DNS round robin', 'DNS-RR') .. "</th><th>" .. lnk('Protocol') .. "</th><th>" .. lnk('URL sanity', 'URL-Sanity') .. "</th><th>" .. lnk('Integrity') .. "</th>" .. | 215 | "<th>" .. lnk('DNS round robin', 'DNS-RR') .. "</th><th>" .. lnk('Protocol') .. "</th><th>" .. lnk('Redirects') .. |
216 | "</th><th>" .. lnk('URL sanity', 'URL-Sanity') .. "</th><th>" .. lnk('Integrity') .. "</th>" .. | ||
216 | "<th colspan='2'>" .. lnk('Updated') .. "</th><th colspan='2'>" .. lnk('Speed range', 'Speed') .. "</th>" .. | 217 | "<th colspan='2'>" .. lnk('Updated') .. "</th><th colspan='2'>" .. lnk('Speed range', 'Speed') .. "</th>" .. |
217 | "<th colspan='2'>" .. lnk('Weekly statistics', 'Weekly') .. "</th><th>" .. lnk('Graphs') .. "</th></tr>\n") | 218 | "<th colspan='2'>" .. lnk('Weekly statistics', 'Weekly') .. "</th><th>" .. lnk('Graphs') .. "</th></tr>\n") |
218 | local bg = '' | 219 | local bg = '' |
@@ -234,6 +235,7 @@ local makeTable = function(web, hosts) | |||
234 | local protocol = status(hosts, k, results, "Protocol") | 235 | local protocol = status(hosts, k, results, "Protocol") |
235 | local sanity = status(hosts, k, results, "URLSanity") | 236 | local sanity = status(hosts, k, results, "URLSanity") |
236 | local integrity = status(hosts, k, results, "Integrity") | 237 | local integrity = status(hosts, k, results, "Integrity") |
238 | local redirects = status(hosts, k, results, "Redirects") | ||
237 | local updated = status(hosts, k, results, "Updated") | 239 | local updated = status(hosts, k, results, "Updated") |
238 | local rate = v.Rate | 240 | local rate = v.Rate |
239 | local min = tonumber(results.speed.min) | 241 | local min = tonumber(results.speed.min) |
@@ -295,7 +297,7 @@ local makeTable = function(web, hosts) | |||
295 | end | 297 | end |
296 | 298 | ||
297 | web:write("<td>" .. ftp .. " </td><td>" .. http .. " </td><td>" .. https .. " </td><td>" .. rsync .. " </td><td>" .. dns .. | 299 | web:write("<td>" .. ftp .. " </td><td>" .. http .. " </td><td>" .. https .. " </td><td>" .. rsync .. " </td><td>" .. dns .. |
298 | " </td><td>" .. protocol .. " </td><td>" .. sanity .. " </td><td>" .. integrity .. " </td>" .. '<td>' .. rate .. | 300 | " </td><td>" .. protocol .. " </td><td>" .. redirects .. " </td><td>" .. sanity .. " </td><td>" .. integrity .. " </td>" .. '<td>' .. rate .. |
299 | '</td><td>' .. updated .. '</td> ' .. spd .. " " .. week .." <td>" .. graph .. "</td></tr>\n") | 301 | '</td><td>' .. updated .. '</td> ' .. spd .. " " .. week .." <td>" .. graph .. "</td></tr>\n") |
300 | if "" ~= active then | 302 | if "" ~= active then |
301 | web:write("<tr><td style='background-color:dimgrey'>" .. active .. "</td></tr>\n") | 303 | web:write("<tr><td style='background-color:dimgrey'>" .. active .. "</td></tr>\n") |
@@ -361,6 +363,7 @@ if nil == email then C("opening mirrors file - " .. e) else | |||
361 | local rsync = "[skip]" | 363 | local rsync = "[skip]" |
362 | local dns = DNSrrTest(APT.mirrors, k) | 364 | local dns = DNSrrTest(APT.mirrors, k) |
363 | local protocol = status(APT.mirrors, k, results, "Protocol") | 365 | local protocol = status(APT.mirrors, k, results, "Protocol") |
366 | local redirects = status(APT.mirrors, k, results, "Redirects") | ||
364 | local sanity = status(APT.mirrors, k, results, "URLSanity") | 367 | local sanity = status(APT.mirrors, k, results, "URLSanity") |
365 | local integrity = status(APT.mirrors, k, results, "Integrity") | 368 | local integrity = status(APT.mirrors, k, results, "Integrity") |
366 | local updated = status(APT.mirrors, k, results, "Updated") | 369 | local updated = status(APT.mirrors, k, results, "Updated") |