aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2020-01-01 14:36:17 +1000
committeronefang2020-01-01 14:36:17 +1000
commit8b2e1dc6709ec83884c7db1e56a7834f4863fe29 (patch)
tree840f6182b52f328839be37bc3cbea5ee8dfa77dd
parentLeave a log of the HEAD probe details. (diff)
downloadapt-panopticon-8b2e1dc6709ec83884c7db1e56a7834f4863fe29.zip
apt-panopticon-8b2e1dc6709ec83884c7db1e56a7834f4863fe29.tar.gz
apt-panopticon-8b2e1dc6709ec83884c7db1e56a7834f4863fe29.tar.bz2
apt-panopticon-8b2e1dc6709ec83884c7db1e56a7834f4863fe29.tar.xz
Tweak the bandwidth limits, by not probing so many Release files.
-rw-r--r--apt-panopticommon.lua2
-rwxr-xr-xapt-panopticon.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua
index c03f817..e40ec0a 100644
--- a/apt-panopticommon.lua
+++ b/apt-panopticommon.lua
@@ -34,7 +34,7 @@ APT.options =
34 ' 2 = high - Also download Packages.xz files that changed, unpack and check them.\n' .. 34 ' 2 = high - Also download Packages.xz files that changed, unpack and check them.\n' ..
35 ' Also download and check InRelease files\n.' .. 35 ' Also download and check InRelease files\n.' ..
36 ' Pick a few small packages, download them, check their SHA512.\n' .. 36 ' Pick a few small packages, download them, check their SHA512.\n' ..
37 ' 3 = more - Also pick more packages, some for each arch.\n' .. 37 ' 3 = more - Also pick more files and packages, some for each reelase / arch.\n' ..
38 ' 4 = all - Do absolutely everything.\n' .. 38 ' 4 = all - Do absolutely everything.\n' ..
39 ' Actually download some Contents files, and some more Packages.xz, and package files.', 39 ' Actually download some Contents files, and some more Packages.xz, and package files.',
40 value = 2, 40 value = 2,
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 3834ced..b6a6218 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -445,7 +445,7 @@ local checkFiles = function (host, ip, path, file)
445 end 445 end
446 end 446 end
447 end 447 end
448 if 0 == APT.options.bandwidth.value then break end 448 if 2 >= APT.options.bandwidth.value then break end
449 end 449 end
450 if 1 <= APT.options.bandwidth.value then 450 if 1 <= APT.options.bandwidth.value then
451 for i, s in pairs(referenceDevs) do 451 for i, s in pairs(referenceDevs) do