mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
add reader stat to torrent stat
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user