diff options
author | onefang | 2019-12-04 08:14:59 +1000 |
---|---|---|
committer | onefang | 2019-12-04 08:14:59 +1000 |
commit | 515c9b638996838b6eb89482321418ded06aaa52 (patch) | |
tree | 5946410c75ca857e15a1555616ebcda60eadd05d /apt-panopticon.lua | |
parent | Move the speed calc to the main script. (diff) | |
download | apt-panopticon-515c9b638996838b6eb89482321418ded06aaa52.zip apt-panopticon-515c9b638996838b6eb89482321418ded06aaa52.tar.gz apt-panopticon-515c9b638996838b6eb89482321418ded06aaa52.tar.bz2 apt-panopticon-515c9b638996838b6eb89482321418ded06aaa52.tar.xz |
Report the timeout differently, the other was a hack that caused problems.
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-x | apt-panopticon.lua | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 5aa1e8d..f0a3128 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -1055,17 +1055,9 @@ if 0 < #arg then | |||
1055 | end | 1055 | end |
1056 | end | 1056 | end |
1057 | 1057 | ||
1058 | results["timeout"] = false | ||
1058 | else | 1059 | else |
1059 | for k, v in pairs{"ftp", "http", "https", "rsync"} do | 1060 | results["timeout"] = true |
1060 | if testing(v) then | ||
1061 | local tests = results[v] | ||
1062 | if testing("Integrity") then tests.Integrity = {errors = -1; warnings = -1} end | ||
1063 | if testing("Protocol") then tests.Protocol = {errors = -1; warnings = -1} end | ||
1064 | if testing("Updated") then tests.Updated = {errors = -1; warnings = -1} end | ||
1065 | if testing("URLSanity") then tests.URLSanity = {errors = -1; warnings = -1} end | ||
1066 | results[v] = tests | ||
1067 | end | ||
1068 | end | ||
1069 | end | 1061 | end |
1070 | end | 1062 | end |
1071 | 1063 | ||