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("
" .. 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') .. " | ' - 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 = ' | ' .. percentUp .. '% up | ' .. percentUpdated .. '% updated | ' + week = '' .. percentUp .. '% up | ' .. percentUpdated .. '% updated | ' end web:write("" .. ftp .. " | " .. http .. " | " .. https .. " | " .. rsync .. " | " .. dns .. - " | " .. protocol .. " | " .. sanity .. " | " .. integrity .. " | " .. updated .. - " " .. spd .. " " .. week .." | " .. graph .. " | \n") + "" .. protocol .. " | " .. sanity .. " | " .. integrity .. " | " .. '' .. rate .. + ' | ' .. updated .. ' | ' .. spd .. " " .. week .."" .. graph .. " | \n") if "" ~= active then web:write("
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
" .. active .. " |