From 08b99a0d030ef7f7c8bb6808ff0aa8adad2c51e8 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 18 Nov 2021 22:13:12 +1000 Subject: Bump to version 0.3 and report it in the web page. --- apt-panopticommon.lua | 4 +++- apt-panopticon-report-email-web.lua | 2 +- 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 = {} -- https://oss.oetiker.ch/rrdtool/prog/rrdlua.en.html APT.rrd = require 'rrd' +APT.version = '0.3 alpha' + APT.protocols = {"ftp", "http", "https", "rsync"} APT.tests = {'raw', 'Integrity', 'Protocol', 'Redirects', 'Updated', 'URLSanity', 'Speed'} APT.releases = {"jessie", "ascii", "beowulf", "chimaera", "daedalus", "ceres"} @@ -140,7 +142,7 @@ APT.parseArgs = function(args) end os.exit() elseif "--version" == a then - print("apt-panopticon version 0.2 alpha") + print("apt-panopticon version " .. APT.version) os.exit() elseif "-v" == a then 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 "and here (Devuan repo).
\n" ) local whn = APT.exe('TZ="GMT" ls -dl1 --time-style="+%s" results/stamp | cut -d " " -f 6-6'):Do().result:sub(2, -2) - web:write( "This run took " .. (os.time() - tonumber("0" .. whn)) .. " seconds.
" .. + web:write( "This run took " .. (os.time() - tonumber("0" .. whn)) .. " seconds.     apt-panopticon version " .. APT.version .. "
" .. "\n