lib/fief/metrics/pulls.rb in fief-0.0.2 vs lib/fief/metrics/pulls.rb in fief-0.0.3
- old
+ new
@@ -36,14 +36,14 @@
old = 0
older = 0
json.each do |pr|
num = pr[:number]
data = @api.pull_request(@repo, num)
- if data[:created_at] < Time.now - (60 * 60 * 24 * 14)
+ if data[:created_at] < Time.now - (60 * 60 * 24 * 28)
loog.debug("PR #{@repo}/##{num} is old")
old += 1
end
- if data[:created_at] < Time.now - (60 * 60 * 24 * 56)
+ if data[:created_at] < Time.now - (60 * 60 * 24 * 112)
loog.debug("PR #{@repo}/##{num} is very old")
older += 1
end
end
[