mafintosh/peerflix — pull request #7 by Ivshti (2013-04-17 17:49:48+00:00)
Title: Fixed progress property

Obtaining firstBlank using Math.min on two indexOf's was a flawed idea, since it disregarded the possibility of one of these being -1. In this case, for example, if there are no reserved pieces but the buffer is all blank ones, it would regard the piece as fully downloaded.