diff options
author | onefang | 2019-12-26 13:27:18 +1000 |
---|---|---|
committer | onefang | 2019-12-26 13:27:18 +1000 |
commit | 422743191479d459c5b5b3529b870deafa87d86b (patch) | |
tree | 47ca37a51e03a561dc5fd3d2fc60719230efce23 | |
parent | More text about not fully probing Debian mirrors. (diff) | |
download | apt-panopticon-422743191479d459c5b5b3529b870deafa87d86b.zip apt-panopticon-422743191479d459c5b5b3529b870deafa87d86b.tar.gz apt-panopticon-422743191479d459c5b5b3529b870deafa87d86b.tar.bz2 apt-panopticon-422743191479d459c5b5b3529b870deafa87d86b.tar.xz |
TODO++
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index d67e3d0..8b8728b 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -896,7 +896,15 @@ os.execute('sleep 1') -- Wait for things to start up before checking for them. | |||
896 | end | 896 | end |
897 | D('*>* Resumed coroutine NO LONGER waiting on - 0 < APT.checkExes(' .. downloadLock .. list.out .. '-' .. host .. '.log.txt') | 897 | D('*>* Resumed coroutine NO LONGER waiting on - 0 < APT.checkExes(' .. downloadLock .. list.out .. '-' .. host .. '.log.txt') |
898 | 898 | ||
899 | -- TODO - should try to figure out which server the file actually got downloaded from, and attribute the speed to that server. | 899 | --[[ TODO - should try to figure out which server the file actually got downloaded from, and attribute the speed and errors to that server. |
900 | Which means parsing the curl logs, not just a simple match(). | ||
901 | Watch out for misplaced ^M, they don't all come at the end of the line. | ||
902 | Also note curl-Release-mirror.devuan.de.log.txt, timeouts don't always show the "Connected to" string. | ||
903 | * Immediate connect fail for 2001:4ca0:4300::1:19: Network is unreachable | ||
904 | * Connected to debian.ipacct.com (2a01:9e40::251) port 80 (#1) | ||
905 | 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to devuan.bio.lmu.de (141.84.43.19) port 80 (#0) | ||
906 | curl: (22) The requested URL returned error: 404 Not Found | ||
907 | ]] | ||
900 | local min, max, spd = 999999999999, 0 | 908 | local min, max, spd = 999999999999, 0 |
901 | if APT.checkFile("results/curl-" .. list.out .. "-" .. host .. ".log.txt") then | 909 | if APT.checkFile("results/curl-" .. list.out .. "-" .. host .. ".log.txt") then |
902 | for l in io.lines("results/curl-" .. list.out .. "-" .. host .. ".log.txt") do | 910 | for l in io.lines("results/curl-" .. list.out .. "-" .. host .. ".log.txt") do |