aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2020-01-03 01:49:05 +1000
committeronefang2020-01-03 01:49:05 +1000
commit9bcdeb5ce39cabe96bb2ebf386c9622a82de7e32 (patch)
treef001e946c9b948348adc939d9655e3a1f54d568d
parentFix another race condition. (diff)
downloadapt-panopticon-9bcdeb5ce39cabe96bb2ebf386c9622a82de7e32.zip
apt-panopticon-9bcdeb5ce39cabe96bb2ebf386c9622a82de7e32.tar.gz
apt-panopticon-9bcdeb5ce39cabe96bb2ebf386c9622a82de7e32.tar.bz2
apt-panopticon-9bcdeb5ce39cabe96bb2ebf386c9622a82de7e32.tar.xz
May need to wait on the file to avoid missing speeds after all.
I really should get this stuff sorted generically.
Diffstat (limited to '')
-rwxr-xr-xapt-panopticon.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index ac18402..2ffda50 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -941,6 +941,14 @@ os.execute('sleep 1') -- Wait for things to start up before checking for them.
941 941
942 local f = 'results/curl-' .. list.out .. "-" .. host .. ".log.txt" 942 local f = 'results/curl-' .. list.out .. "-" .. host .. ".log.txt"
943 943
944 local f = 'results/curl-' .. list.out .. "-" .. host .. ".log.txt"
945 -- Should not be needed, but maybe this is why sometimes I don't see the speeds, though the file is there aand valid when I look later.
946 while not APT.checkFile(f) do
947 D('*<* About to yield coroutine while waiting on - not APT.checkFile(' .. f .. ')')
948 coroutine.yield()
949 D('*>* Resumed coroutine while waiting on - not APT.checkFile(' .. f .. ')')
950 end
951
944--[[ TODO - should try to figure out which server the file actually got downloaded from, and attribute the speed and errors to that server. 952--[[ TODO - should try to figure out which server the file actually got downloaded from, and attribute the speed and errors to that server.
945 Which means parsing the curl logs, not just a simple match(). 953 Which means parsing the curl logs, not just a simple match().
946 Watch out for misplaced ^M, they don't all come at the end of the line. 954 Watch out for misplaced ^M, they don't all come at the end of the line.