This commit is contained in:
voidlizard 2024-11-13 19:27:03 +03:00
parent d2e980f4a1
commit 6baa813f7b
1 changed files with 1 additions and 3 deletions

View File

@ -476,8 +476,6 @@ downloadFromPeer t bu cache env h peer = liftIO $ withPeerM env do
lift $ request peer req
-- pause @'MilliSeconds ( rtt * 0.01 )
t0 <- getTimeCoarse
let watchdog = fix \next -> do
@ -499,7 +497,7 @@ downloadFromPeer t bu cache env h peer = liftIO $ withPeerM env do
atomically do
-- wx0 <- readTVar _wx
let wx1 = 1.50 * realToFrac (t1 - t0) * 100 / 1e6 -- millis
let wx1 = 100 * realToFrac (t1 - t0) / 1e6 -- millis
writeTVar _wx wx1
case r of