From f02b222005f7d656a6da8d25dca5a5fef56857c2 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 30 Dec 2019 17:05:18 +1000 Subject: A lot of tweaking of the logging and reporting, making it easier to read. --- apt-panopticon-report-email-web.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'apt-panopticon-report-email-web.lua') diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua index 97f7cef..05699ee 100755 --- a/apt-panopticon-report-email-web.lua +++ b/apt-panopticon-report-email-web.lua @@ -213,7 +213,7 @@ end local makeTable = function(web, hosts) web:write("\n" .. "" .. - "" .. + "" .. "\n") local bg = '' for k, v in APT.orderedPairs(hosts) do @@ -235,13 +235,13 @@ local makeTable = function(web, hosts) local sanity = status(hosts, k, results, "URLSanity") local integrity = status(hosts, k, results, "Integrity") local updated = status(hosts, k, results, "Updated") - local rate = v.Rate - if nil ~= rate then updated = updated .. ' ' .. rate end + local rate = v.Rate local min = tonumber(results.speed.min) local max = tonumber(results.speed.max) local spd = '' - local week = '' + local week = '' local graph = 'graphs' + if nil == rate then rate = '' end -- DNS-RR test. if (APT.options.roundRobin.value ~= k) and (nil ~= hosts[APT.options.roundRobin.value]) then @@ -291,12 +291,12 @@ local makeTable = function(web, hosts) if '0.00' == percentUp then percentUpdated = '??' end -- We are counting errors, and you can't get an error if you can't check anything. -- TODO - try to account for this better, this is just a quick hack. end - week = '' + week = '' end web:write("\n") + " " .. ' ' .. spd .. " " .. week .." \n") if "" ~= active then web:write("\n") end @@ -482,7 +482,7 @@ if nil == web then C("opening mirrors file - " .. e) else " means the mirror had some timeouts, and tests where not yet aborted. The darker colour means unsupported by the mirror, but tested anyway.

" .. "

TIMEOUT or TIMEOUT" .. " means the mirror had too many timeouts, and tests where aborted, so there is no result for this test.

" .. - "

NOTE: timeouts may be due to a problem on the testing computer.

" .. + "

NOTE: timeouts may be due to a problem on the testing computer, it might be busy with other things, or be having it's own network problems..

" .. "

The DNS round robin (DNS-RR) column shows the IPs for that mirror, or no if it isn't part of the DNS-RR.   " .. "The IPs link to the testing log for that IP accessed via the DNS-RR.   " .. APT.options.roundRobin.value .. " is the DNS-RR itself, so it doesn't get tested directly.

\n" .. @@ -497,7 +497,7 @@ if nil == web then C("opening mirrors file - " .. e) else m = makeIPlist(APT.mirrors) web:write( "

This lists each mirror, and the DNS entries for that mirror.   " .. - "The links point to the testing log files for " .. logCount("apt-panopticon") .. " for each domain name / IP combination that was tested.   " .. + "The links point to the testing log files (" .. logCount("apt-panopticon") .. ") for each domain name / IP combination that was tested.   " .. "If a mirror has a CNAME, that CNAME is listed along with that CNAMEs DNS entries.   " .. APT.options.roundRobin.value .. " is the DNS round robin, which points to the mirrors that are part of the DNS-RR.   " .. "If an IP is part of the DNS-RR, it is marked with 'DNS-RR'   " .. -- cgit v1.1

" .. lnk('FTP') .. "" .. lnk('HTTP') .. "" .. lnk('HTTPS') .. "" .. lnk('RSYNC') .. "" .. lnk('DNS round robin', 'DNS-RR') .. "" .. lnk('Protocol') .. "" .. lnk('URL sanity', 'URL-Sanity') .. "" .. lnk('Integrity') .. "" .. lnk('Updated') .. "" .. lnk('Speed range', 'Speed') .. "" .. lnk('Updated') .. "" .. lnk('Speed range', 'Speed') .. "" .. lnk('Weekly statistics', 'Weekly') .. "" .. lnk('Graphs') .. "
  ' .. percentUp .. '% up' .. percentUpdated .. '% updated ' .. percentUp .. '% up ' .. percentUpdated .. '% updated" .. ftp .. " " .. http .. " " .. https .. " " .. rsync .. " " .. dns .. - " " .. protocol .. " " .. sanity .. " " .. integrity .. " " .. updated .. - " " .. spd .. " " .. week .." " .. graph .. "
" .. protocol .. " " .. sanity .. " " .. integrity .. " ' .. rate .. + '' .. updated .. '" .. graph .. "
" .. active .. "