Skip to content

Commit

Permalink
updated to newest anacrolix/torrent
Browse files Browse the repository at this point in the history
  • Loading branch information
jpillora committed Jun 16, 2015
1 parent de92fef commit 7f698e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ct/engines/native/native.go
Expand Up @@ -72,15 +72,15 @@ func (n *Native) pollTorrents() {
files := t.Files()
st.Files = make([]*shared.File, len(files))
for i, f1 := range files {
peices := f1.Progress()
peices := f1.State()
f2 := &shared.File{
Path: f1.Path(),
Size: f1.Length(),
Chunks: len(peices),
Completed: 0,
}
for _, p := range peices {
if p.State == 'C' {
if p.Complete {
f2.Completed++
}
}
Expand Down

0 comments on commit 7f698e3

Please sign in to comment.