From 422743191479d459c5b5b3529b870deafa87d86b Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 26 Dec 2019 13:27:18 +1000 Subject: TODO++ --- apt-panopticon.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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. end D('*>* Resumed coroutine NO LONGER waiting on - 0 < APT.checkExes(' .. downloadLock .. list.out .. '-' .. host .. '.log.txt') --- TODO - should try to figure out which server the file actually got downloaded from, and attribute the speed to that server. +--[[ TODO - should try to figure out which server the file actually got downloaded from, and attribute the speed and errors to that server. + Which means parsing the curl logs, not just a simple match(). + Watch out for misplaced ^M, they don't all come at the end of the line. + Also note curl-Release-mirror.devuan.de.log.txt, timeouts don't always show the "Connected to" string. + * Immediate connect fail for 2001:4ca0:4300::1:19: Network is unreachable + * Connected to debian.ipacct.com (2a01:9e40::251) port 80 (#1) + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to devuan.bio.lmu.de (141.84.43.19) port 80 (#0) + curl: (22) The requested URL returned error: 404 Not Found +]] local min, max, spd = 999999999999, 0 if APT.checkFile("results/curl-" .. list.out .. "-" .. host .. ".log.txt") then for l in io.lines("results/curl-" .. list.out .. "-" .. host .. ".log.txt") do -- cgit v1.1