From 359f3d6a81bad877b4e097be98683a6cda4a7633 Mon Sep 17 00:00:00 2001
From: onefang
Date: Thu, 26 Dec 2019 17:50:53 +1000
Subject: Tweak how timeouts are reported.
---
apt-panopticon-report-email-web.lua | 18 ++++--------------
1 file 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)
result = "[TIMEOUT*"
end
end
- elseif 0 < e then
- result = "[FAILED"
- if not s then result = result .. "*" end
- if APT.html then
- if s then
- result = "[FAILED"
- else
- result = "[FAILED*"
- end
- end
if APT.html then
faulty = faulty .. host .. " (" .. typ .. ")
\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 = "[timeout"
+ result = "[FAILED"
else
- result = "[timeout*"
+ result = "[FAILED*"
end
end
if APT.html then
--
cgit v1.1