Explorar o código

ceil not round

Henry Oswald %!s(int64=9) %!d(string=hai) anos
pai
achega
ad5af5f4dd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/track-changes/app/coffee/PackManager.coffee

+ 1 - 1
services/track-changes/app/coffee/PackManager.coffee

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