aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--apt-panopticommon.lua4
-rwxr-xr-xapt-panopticon-report-email-web.lua2
2 files changed, 4 insertions, 2 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua
index 9de97b4..f2a7fee 100644
--- a/apt-panopticommon.lua
+++ b/apt-panopticommon.lua
@@ -3,6 +3,8 @@ local APT = {}
3-- https://oss.oetiker.ch/rrdtool/prog/rrdlua.en.html 3-- https://oss.oetiker.ch/rrdtool/prog/rrdlua.en.html
4APT.rrd = require 'rrd' 4APT.rrd = require 'rrd'
5 5
6APT.version = '0.3 alpha'
7
6APT.protocols = {"ftp", "http", "https", "rsync"} 8APT.protocols = {"ftp", "http", "https", "rsync"}
7APT.tests = {'raw', 'Integrity', 'Protocol', 'Redirects', 'Updated', 'URLSanity', 'Speed'} 9APT.tests = {'raw', 'Integrity', 'Protocol', 'Redirects', 'Updated', 'URLSanity', 'Speed'}
8APT.releases = {"jessie", "ascii", "beowulf", "chimaera", "daedalus", "ceres"} 10APT.releases = {"jessie", "ascii", "beowulf", "chimaera", "daedalus", "ceres"}
@@ -140,7 +142,7 @@ APT.parseArgs = function(args)
140 end 142 end
141 os.exit() 143 os.exit()
142 elseif "--version" == a then 144 elseif "--version" == a then
143 print("apt-panopticon version 0.2 alpha") 145 print("apt-panopticon version " .. APT.version)
144 os.exit() 146 os.exit()
145 elseif "-v" == a then 147 elseif "-v" == a then
146 APT.verbosity = APT.verbosity + 1 148 APT.verbosity = APT.verbosity + 1
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua
index b0196e6..d6c866d 100755
--- a/apt-panopticon-report-email-web.lua
+++ b/apt-panopticon-report-email-web.lua
@@ -614,7 +614,7 @@ if nil == web then C("opening mirrors file - " .. e) else
614 "and <a href='https://git.devuan.dev/onefang/apt-panopticon_cgp'>here (Devuan repo)</a>.</p>\n" 614 "and <a href='https://git.devuan.dev/onefang/apt-panopticon_cgp'>here (Devuan repo)</a>.</p>\n"
615 ) 615 )
616 local whn = APT.exe('TZ="GMT" ls -dl1 --time-style="+%s" results/stamp | cut -d " " -f 6-6'):Do().result:sub(2, -2) 616 local whn = APT.exe('TZ="GMT" ls -dl1 --time-style="+%s" results/stamp | cut -d " " -f 6-6'):Do().result:sub(2, -2)
617 web:write( "<p>This run took " .. (os.time() - tonumber("0" .. whn)) .. " seconds.</p>" .. 617 web:write( "<p>This run took " .. (os.time() - tonumber("0" .. whn)) .. " seconds. &nbsp &nbsp apt-panopticon version " .. APT.version .. " </p>" ..
618 "\n</body></html>\n") 618 "\n</body></html>\n")
619 web:close() 619 web:close()
620end 620end