From 3442d0d038a1e74ff030f21f9dc4d573e1e1c6a6 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 27 Dec 2019 13:21:04 +1000 Subject: Add a linky to the graphs for each mirror. Also includes the place holder for the stil being debugged weekly averages. --- apt-panopticon-report-email-web.lua | 19 +++++++++++++------ explanations.html | 6 ++++++ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua index 079c4cc..abc376c 100755 --- a/apt-panopticon-report-email-web.lua +++ b/apt-panopticon-report-email-web.lua @@ -362,7 +362,8 @@ if nil == web then C("opening mirrors file - " .. e) else "
skip means that the test hasn't been written yet.
\n" .. "" .. 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 averages', 'Weekly') .. " | " .. lnk('Graphs') .. " | \n" ) local bg = '' @@ -390,6 +391,8 @@ if nil == web then C("opening mirrors file - " .. e) else local min = tonumber(results.speed.min) local max = tonumber(results.speed.max) local spd = '' + local week = ' | xxx% up | xxx% updated | ' + local graph = 'graphs' -- DNS-RR test. if ("deb.devuan.org" ~= k) and (nil ~= APT.mirrors["deb.devuan.org"]) then @@ -430,8 +433,8 @@ if nil == web then C("opening mirrors file - " .. e) else end web:write("" .. ftp .. " | " .. http .. " | " .. https .. " | " .. rsync .. " | " .. dns .. - " | " .. protocol .. " | " .. sanity .. - " | " .. integrity .. " | " .. updated .. " | " .. spd .. "\n") + "" .. protocol .. " | " .. sanity .. " | " .. integrity .. " | " .. updated .. + " " .. spd .. " " .. week .." | " .. graph .. " | \n") if "" ~= active then web:write("
---|---|---|---|---|---|---|---|---|---|---|---|
" .. active .. " |
" .. 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 averages', 'Weekly') .. " | " .. lnk('Graphs') .. " | \n" + ) for k, v in APT.orderedPairs(APT.debians) do if '' == bg then bg = " style='background-color:#111111'" else bg = '' end local results = APT.collateAll(APT.debians, 'results', k) @@ -512,6 +517,8 @@ if nil == web then C("opening mirrors file - " .. e) else local min = tonumber(results.speed.min) local max = tonumber(results.speed.max) local spd = '' + local week = ' | xxx% up | xxx% updated | ' + local graph = 'graphs' -- DNS-RR test. if ("deb.devuan.org" ~= k) and (nil ~= APT.debians["deb.devuan.org"]) then @@ -552,8 +559,8 @@ if nil == web then C("opening mirrors file - " .. e) else end web:write("" .. ftp .. " | " .. http .. " | " .. https .. " | " .. rsync .. " | " .. dns .. - " | " .. protocol .. " | " .. sanity .. - " | " .. integrity .. " | " .. updated .. " | " .. spd .. "\n") + "" .. protocol .. " | " .. sanity .. " | " .. integrity .. " | " .. updated .. + " | " .. spd .. " " .. week .."" .. graph .. " | \n") if "" ~= active then web:write("
---|---|---|---|---|---|---|---|---|---|---|---|
" .. active .. " |