aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-26 17:50:53 +1000
committeronefang2019-12-26 17:50:53 +1000
commit359f3d6a81bad877b4e097be98683a6cda4a7633 (patch)
tree18e4e43f60bf55abf95ab20abb153cdccc1cd250
parentComplete the explanations.html text. (diff)
downloadapt-panopticon-359f3d6a81bad877b4e097be98683a6cda4a7633.zip
apt-panopticon-359f3d6a81bad877b4e097be98683a6cda4a7633.tar.gz
apt-panopticon-359f3d6a81bad877b4e097be98683a6cda4a7633.tar.bz2
apt-panopticon-359f3d6a81bad877b4e097be98683a6cda4a7633.tar.xz
Tweak how timeouts are reported.
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