Skip to content

Commit

Permalink
fix condition to use -count value
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Dec 17, 2017
1 parent 0db716e commit bcbcef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghca/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func NewCollector(query, token, dest string, extract *regexp.Regexp, count int,
}
if c.maxPage == PageUnlimited {
maxRepos := 1000.0
if count != 0 {
if 0 < count && count < 1000 {
maxRepos = float64(count)
}
c.maxPage = uint(math.Ceil(maxRepos / float64(c.perPage)))
Expand Down

0 comments on commit bcbcef7

Please sign in to comment.