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" .. "\n" .. "" .. - "\n" + "" .. + "\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 = '' + 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("" .. spd .. "\n") + " \n") if "" ~= active then web:write("\n") end @@ -487,7 +490,9 @@ if nil == web then C("opening mirrors file - " .. e) else "
" .. 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') .. "
xxx% upxxx% updated" .. ftp .. " " .. http .. " " .. https .. " " .. rsync .. " " .. dns .. - " " .. protocol .. " " .. sanity .. - " " .. integrity .. " " .. updated .. " 
" .. protocol .. " " .. sanity .. " " .. integrity .. " " .. updated .. + " " .. spd .. " " .. week .." " .. graph .. "
" .. active .. "
\n" .. "" .. - "\n") + "" .. + "\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 = '' + 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("" .. spd .. "\n") + " " .. spd .. " " .. week .." \n") if "" ~= active then web:write("\n") end diff --git a/explanations.html b/explanations.html index a6efb76..ae1299a 100644 --- a/explanations.html +++ b/explanations.html @@ -77,4 +77,10 @@ Finally, the tested mirror may have a bigger network connection than the compute So take this speed measurement with a grain of salt, it's more of an indication, the full graphs might be useful.

+

Weekly averages

+

This is the percentage of time the mirror was up, and the mirror was up to date.

+ +

Graphs

+

A link to the graphs for this mirror.

+ -- 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 averages', 'Weekly') .. "" .. lnk('Graphs') .. "
xxx% upxxx% updated" .. ftp .. " " .. http .. " " .. https .. " " .. rsync .. " " .. dns .. - " " .. protocol .. " " .. sanity .. - " " .. integrity .. " " .. updated .. " 
" .. protocol .. " " .. sanity .. " " .. integrity .. " " .. updated .. + " " .. graph .. "
" .. active .. "