Fix a bug in stealing code

This commit is contained in:
Igor Katson 2024-04-29 12:01:31 +01:00
parent 3d46d7cb97
commit 9590df1122
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 2 additions and 3 deletions

View file

@ -142,7 +142,6 @@ impl PeerStates {
begin: req.offset,
length: req.size,
})));
live.inflight_requests.remove(&req);
}
});
}

View file

@ -321,8 +321,8 @@ async fn async_main(opts: Opts) -> anyhow::Result<()> {
up_speed.mbps(),
SF::new(live_stats.snapshot.uploaded_bytes),
eta,
peer_stats.live + peer_stats.connecting,
peer_stats.queued,
peer_stats.live,
peer_stats.queued + peer_stats.connecting,
peer_stats.dead,
);
}