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 +++++++++++++------ 1 file changed, 13 insertions(+), 6 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 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 -- 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 .. "