From cd2403a825a9dc8273f8ce920b805c0938fbb82b Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 21 Jun 2016 16:49:11 +0200 Subject: Fix isSingelFile --- meta/torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/torrent.go') diff --git a/meta/torrent.go b/meta/torrent.go index ccc8170..d6ebfe5 100644 --- a/meta/torrent.go +++ b/meta/torrent.go @@ -86,7 +86,7 @@ func (i Info) ReadAt(chunk, offset, length int) ([]byte, error) { */ func (i Info) isSingleFile() bool { - return len(i.Files) > 0 + return len(i.Files) == 0 } // PieceCount returns count of full pieces and size of last piece -- cgit v1.2.3