ceil not round

This commit is contained in:
Henry Oswald 2017-01-26 15:14:20 +00:00
parent 1d356f93ec
commit ad5af5f4dd

View file

@ -534,5 +534,5 @@ module.exports = PackManager =
_getOneDayInFutureWithRandomDelay: ->
thirtyMins = 1000 * 60 * 30
randomThirtyMinMax = Math.round(Math.random() * thirtyMins)
randomThirtyMinMax = Math.ceil(Math.random() * thirtyMins)
return new Date(Date.now() + randomThirtyMinMax + 1*DAYS)