From 0ca88dc140a504f123505438ead598d4e5f02025 Mon Sep 17 00:00:00 2001
From: onefang
Date: Wed, 13 Nov 2019 01:35:44 +1000
Subject: Make the email and web reports similar, reporting the same tests.
---
 apt-panopticon-report-web.lua | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
(limited to 'apt-panopticon-report-web.lua')
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua
index ca7ce4b..163d50f 100755
--- a/apt-panopticon-report-web.lua
+++ b/apt-panopticon-report-web.lua
@@ -109,7 +109,7 @@ local status = function(host, results, typ)
 	end
     end
 
-    if 0 < e then result = e .. " error" end
+    if 0 < e then result = e .. " errors" end
     if 1 == e then result = e .. " error" end
     if 0 < w then
 	if 0 < e then result = result .. ", " end
@@ -163,7 +163,6 @@ local collate = function(host, ip, results)
     return results
 end
 
-
 local mirrors = loadfile("results/mirrors.lua")()
 
 local file, e = io.open("results/Report-web.html", "w+")
@@ -184,14 +183,14 @@ if nil == file then C("opening mirrors file - " .. e) else
 		results = collate(k, i, results)
 	    end
 	end
---	local http	= status(k, results, "http")
---	local https	= status(k, results, "https")
+	local http	= status(k, results, "http")
+	local https	= status(k, results, "https")
 	local dns	= "[skip]"
+	local protocol	= status(k, results, "Protocol")
+	local sanity	= "[skip]"
 	local integrity = "[skip]"
-	local protocol = status(k, results, "Protocol")
-	local sanity = "[skip]"
 	local updated	= "[skip]"
-	file:write(" DNS-RR: " .. dns .. " Integrity: " .. integrity .. " Protocol: " .. protocol .. " URL-sanity: " .. sanity .. " Updated: " .. updated .. "\n
\n")
+	file:write(" http: " .. http .. " https: " .. https .. " DNS-RR: " .. dns .. " Protocol: " .. protocol .. " URL-sanity: " .. sanity .. " Integrity: " .. integrity .. " Updated: " .. updated .. "\n
\n")
     end
     file:write( "==== faulty mirrors: ====
\n
\n" .. faulty)
     file:write( "\n
\nLast Failure: NOT WRITTEN YET
\n
")
-- 
cgit v1.1