Add parameter with_peers to stats_snapshot while its slow
This commit is contained in:
parent
d6cef0952c
commit
0c89ee9248
5 changed files with 11 additions and 7 deletions
|
|
@ -244,7 +244,7 @@ async fn async_main(opts: Opts, spawner: BlockingSpawner) -> anyhow::Result<()>
|
|||
info!("[{}] initializing", idx);
|
||||
},
|
||||
ManagedTorrentState::Running(handle) => {
|
||||
let stats = timeit("stats_snapshot", || handle.torrent_state().stats_snapshot());
|
||||
let stats = timeit("stats_snapshot", || handle.torrent_state().stats_snapshot(true));
|
||||
let speed = handle.speed_estimator();
|
||||
let total = stats.total_bytes;
|
||||
let progress = stats.total_bytes - stats.remaining_bytes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue