diff options
-rwxr-xr-x | apt-panopticon-report-email-web.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua index cdfa5bd..12a3960 100755 --- a/apt-panopticon-report-email-web.lua +++ b/apt-panopticon-report-email-web.lua | |||
@@ -311,13 +311,13 @@ APT.html = true | |||
311 | local web, e = io.open("results/Report-web.html", "w+") | 311 | local web, e = io.open("results/Report-web.html", "w+") |
312 | if nil == web then C("opening mirrors file - " .. e) else | 312 | if nil == web then C("opening mirrors file - " .. e) else |
313 | web:write( "<html><head><title>apt-panopticon results</title>\n") | 313 | web:write( "<html><head><title>apt-panopticon results</title>\n") |
314 | if 0 < APT.options.refresh.value then | 314 | if 0 < tonumber(APT.options.refresh.value) then |
315 | web:write('<meta http-equiv="refresh" content="' .. APT.options.refresh.value .. '">\n') | 315 | web:write('<meta http-equiv="refresh" content="' .. APT.options.refresh.value .. '">\n') |
316 | end | 316 | end |
317 | web:write( '</head><body bgcolor="black" text="white">' .. | 317 | web:write( '</head><body bgcolor="black" text="white">' .. |
318 | "<h1>Welcome to the apt-panopticon results page.</h1>\n" .. | 318 | "<h1>Welcome to the apt-panopticon results page.</h1>\n" .. |
319 | "<p>This is the status of the mirror servers in the Devuan package mirror network.</p>\n") | 319 | "<p>This is the status of the mirror servers in the Devuan package mirror network.</p>\n") |
320 | if 0 < APT.options.refresh.value then | 320 | if 0 < tonumber(APT.options.refresh.value) then |
321 | web:write( '<p>This page will refresh every ' .. (APT.options.refresh.value / 60) .. ' minutes.</p>') | 321 | web:write( '<p>This page will refresh every ' .. (APT.options.refresh.value / 60) .. ' minutes.</p>') |
322 | end | 322 | end |
323 | web:write( "<p><font style='background-color:red; color:black'>EXPERIMENTAL CODE - double check all results you see here, and read the logs if it's important.</font></p>" .. | 323 | web:write( "<p><font style='background-color:red; color:black'>EXPERIMENTAL CODE - double check all results you see here, and read the logs if it's important.</font></p>" .. |