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
|
|
@ -320,7 +320,7 @@ impl ApiInternal {
|
|||
|
||||
fn api_stats(&self, idx: usize) -> Result<StatsResponse> {
|
||||
let mgr = self.mgr_handle(idx)?;
|
||||
let snapshot = mgr.torrent_state().stats_snapshot();
|
||||
let snapshot = mgr.torrent_state().stats_snapshot(true);
|
||||
let estimator = mgr.speed_estimator();
|
||||
|
||||
// Poor mans download speed computation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue