Browse Source

Tweak how timeouts are reported.

master
onefang 3 years ago
parent
commit
359f3d6a81
  1. 18
      apt-panopticon-report-email-web.lua

18
apt-panopticon-report-email-web.lua

@ -90,29 +90,19 @@ local status = function(hosts, host, results, typ)
result = "[<font color='darkblue'><b>TIMEOUT*</b></font>"
end
end
elseif 0 < e then
result = "[FAILED"
if not s then result = result .. "*" end
if APT.html then
if s then
result = "[<font color='red'><b>FAILED</b></font>"
else
result = "[<font color='darkred'><b>FAILED*</b></font>"
end
end
if APT.html then
faulty = faulty .. host .. " (" .. typ .. ")<br>\n"
else
faulty = faulty .. host .. " (" .. typ .. ")\n"
end
elseif 0 < t then
result = "[timeout"
elseif 0 < e then
result = "[FAILED"
if not s then result = result .. "*" end
if APT.html then
if s then
result = "[<font color='blue'><b>timeout</b></font>"
result = "[<font color='red'><b>FAILED</b></font>"
else
result = "[<font color='darkblue'><b>timeout*</b></font>"
result = "[<font color='darkred'><b>FAILED*</b></font>"
end
end
if APT.html then

Loading…
Cancel
Save