Implement logrus, fix httpFs

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
Antonio Navarro Perez 2020-07-14 13:55:08 +02:00
parent b59def4718
commit 11d501cd51
14 changed files with 138 additions and 88 deletions

View file

@ -2,7 +2,6 @@ package stats
import (
"errors"
"log"
"time"
"github.com/anacrolix/torrent"
@ -142,8 +141,6 @@ func (s *Torrent) stats(now time.Time, t *torrent.Torrent, chunks bool) *Torrent
if s.returnPreviousMeasurements(now) {
ts.DownloadedBytes = prev.downloadBytes
ts.UploadedBytes = prev.uploadBytes
log.Println("Using previous stats")
} else {
st := t.Stats()
rd := st.BytesReadData.Int64()