From 7f698e3ac427d709d1092d21d6864df7167f2a52 Mon Sep 17 00:00:00 2001 From: Jaime Pillora Date: Wed, 17 Jun 2015 01:36:53 +1000 Subject: [PATCH] updated to newest anacrolix/torrent --- ct/engines/native/native.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/engines/native/native.go b/ct/engines/native/native.go index dba3a5de2..971c1617c 100644 --- a/ct/engines/native/native.go +++ b/ct/engines/native/native.go @@ -72,7 +72,7 @@ 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(), @@ -80,7 +80,7 @@ func (n *Native) pollTorrents() { Completed: 0, } for _, p := range peices { - if p.State == 'C' { + if p.Complete { f2.Completed++ } }