aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xapt-panopticon-report-email-web.lua18
1 files changed, 4 insertions, 14 deletions
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua
index 14b0794..60d1b49 100755
--- a/apt-panopticon-report-email-web.lua
+++ b/apt-panopticon-report-email-web.lua
@@ -90,29 +90,19 @@ local status = function(hosts, host, results, typ)
90 result = "[<font color='darkblue'><b>TIMEOUT*</b></font>" 90 result = "[<font color='darkblue'><b>TIMEOUT*</b></font>"
91 end 91 end
92 end 92 end
93 elseif 0 < e then
94 result = "[FAILED"
95 if not s then result = result .. "*" end
96 if APT.html then
97 if s then
98 result = "[<font color='red'><b>FAILED</b></font>"
99 else
100 result = "[<font color='darkred'><b>FAILED*</b></font>"
101 end
102 end
103 if APT.html then 93 if APT.html then
104 faulty = faulty .. host .. " (" .. typ .. ")<br>\n" 94 faulty = faulty .. host .. " (" .. typ .. ")<br>\n"
105 else 95 else
106 faulty = faulty .. host .. " (" .. typ .. ")\n" 96 faulty = faulty .. host .. " (" .. typ .. ")\n"
107 end 97 end
108 elseif 0 < t then 98 elseif 0 < e then
109 result = "[timeout" 99 result = "[FAILED"
110 if not s then result = result .. "*" end 100 if not s then result = result .. "*" end
111 if APT.html then 101 if APT.html then
112 if s then 102 if s then
113 result = "[<font color='blue'><b>timeout</b></font>" 103 result = "[<font color='red'><b>FAILED</b></font>"
114 else 104 else
115 result = "[<font color='darkblue'><b>timeout*</b></font>" 105 result = "[<font color='darkred'><b>FAILED*</b></font>"
116 end 106 end
117 end 107 end
118 if APT.html then 108 if APT.html then