aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-01 01:41:38 +1000
committeronefang2019-12-01 01:41:38 +1000
commit2f4fad41d2b264d34e7e1cbd68817ee9acc1bef2 (patch)
tree7b33b0312c0b4db210fab8263c5dff1bf7602fc6
parentMuch work on the Updated tests. (diff)
downloadapt-panopticon-2f4fad41d2b264d34e7e1cbd68817ee9acc1bef2.zip
apt-panopticon-2f4fad41d2b264d34e7e1cbd68817ee9acc1bef2.tar.gz
apt-panopticon-2f4fad41d2b264d34e7e1cbd68817ee9acc1bef2.tar.bz2
apt-panopticon-2f4fad41d2b264d34e7e1cbd68817ee9acc1bef2.tar.xz
Change time format for reports, and add time to email.
-rwxr-xr-xapt-panopticon-report-email.lua2
-rwxr-xr-xapt-panopticon-report-web.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon-report-email.lua b/apt-panopticon-report-email.lua
index eb2a0a7..72fb332 100755
--- a/apt-panopticon-report-email.lua
+++ b/apt-panopticon-report-email.lua
@@ -220,7 +220,7 @@ if nil == file then C("opening mirrors file - " .. e) else
220 "Due to the nature of the tests, some errors or warnings will be \ncounted several times. " .. 220 "Due to the nature of the tests, some errors or warnings will be \ncounted several times. " ..
221 "Refer to the logs on the web page for details.\n\n" .. 221 "Refer to the logs on the web page for details.\n\n" ..
222 "Please see below the current status of the Devuan Package Mirror \nnetwork:\n\n" .. 222 "Please see below the current status of the Devuan Package Mirror \nnetwork:\n\n" ..
223 "---- BEGIN MIRROR-STATUS ----\n") 223 "---- BEGIN MIRROR-STATUS " .. os.date("!%Y-%m-%d %H:%M") .. " ----\n")
224 for k, v in orderedPairs(mirrors) do 224 for k, v in orderedPairs(mirrors) do
225 local results = loadfile("results/" .. k .. ".lua")() 225 local results = loadfile("results/" .. k .. ".lua")()
226 file:write(k .. "....\n") 226 file:write(k .. "....\n")
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua
index 753a23c..94fbecf 100755
--- a/apt-panopticon-report-web.lua
+++ b/apt-panopticon-report-web.lua
@@ -250,7 +250,7 @@ if nil == file then C("opening mirrors file - " .. e) else
250 file:write( "<html><head><title>apt-panopticon results</title>\n" .. 250 file:write( "<html><head><title>apt-panopticon results</title>\n" ..
251 '</head><body bgcolor="black" text="white" alink="red" link="blue" vlink="purple">' .. 251 '</head><body bgcolor="black" text="white" alink="red" link="blue" vlink="purple">' ..
252 "<h1>Welcome to the apt-opticon results page.</h1>\n" .. 252 "<h1>Welcome to the apt-opticon results page.</h1>\n" ..
253 "<p>Check time: " .. os.date("!%a %b %d %T %Z %Y") .. "</p>\n" .. 253 "<p>Check time: " .. os.date("!%Y-%m-%d %H:%M") .. "</p>\n" ..
254 "<p>The full list of Devuan package mirrors is available at the URL: " .. 254 "<p>The full list of Devuan package mirrors is available at the URL: " ..
255 "<a href='https://pkgmaster.devuan.org/mirror_list.txt'>https://pkgmaster.devuan.org/mirror_list.txt</a></p>\n" .. 255 "<a href='https://pkgmaster.devuan.org/mirror_list.txt'>https://pkgmaster.devuan.org/mirror_list.txt</a></p>\n" ..
256 "<p>Due to the nature of the tests, some errors or warnings will be counted several times. &nbsp; " .. 256 "<p>Due to the nature of the tests, some errors or warnings will be counted several times. &nbsp; " ..