add reader stat to torrent stat

This commit is contained in:
YouROK
2021-05-27 08:34:19 +03:00
parent bd44ebaf2b
commit 2af1752a00
5 changed files with 23 additions and 9 deletions

View File

@@ -427,6 +427,11 @@ func (t *Torrent) Status() *state.TorrentStatus {
}
}
}
if t.cache != nil {
st.Readers = t.cache.GetState().Readers
}
return st
}