aboutsummaryrefslogtreecommitdiff
path: root/meta/torrent.go
diff options
context:
space:
mode:
Diffstat (limited to 'meta/torrent.go')
-rw-r--r--meta/torrent.go2
1 files changed, 1 insertions, 1 deletions
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