mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
d2e980f4a1
commit
6baa813f7b
|
@ -476,8 +476,6 @@ downloadFromPeer t bu cache env h peer = liftIO $ withPeerM env do
|
||||||
|
|
||||||
lift $ request peer req
|
lift $ request peer req
|
||||||
|
|
||||||
-- pause @'MilliSeconds ( rtt * 0.01 )
|
|
||||||
|
|
||||||
t0 <- getTimeCoarse
|
t0 <- getTimeCoarse
|
||||||
|
|
||||||
let watchdog = fix \next -> do
|
let watchdog = fix \next -> do
|
||||||
|
@ -499,7 +497,7 @@ downloadFromPeer t bu cache env h peer = liftIO $ withPeerM env do
|
||||||
|
|
||||||
atomically do
|
atomically do
|
||||||
-- wx0 <- readTVar _wx
|
-- wx0 <- readTVar _wx
|
||||||
let wx1 = 1.50 * realToFrac (t1 - t0) * 100 / 1e6 -- millis
|
let wx1 = 100 * realToFrac (t1 - t0) / 1e6 -- millis
|
||||||
writeTVar _wx wx1
|
writeTVar _wx wx1
|
||||||
|
|
||||||
case r of
|
case r of
|
||||||
|
|
Loading…
Reference in New Issue