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

@@ -2,6 +2,7 @@ package state
import (
"server/torr/state"
"server/torr/storage/reader"
)
type CacheState struct {
@@ -12,7 +13,7 @@ type CacheState struct {
PiecesCount int
Torrent *state.TorrentStatus
Pieces map[int]ItemState
Readers []*ReaderState
Readers []*reader.ReaderState
}
type ItemState struct {
@@ -21,9 +22,3 @@ type ItemState struct {
Size int64
Completed bool
}
type ReaderState struct {
Start int
End int
Reader int
}