B2G/gecko/services/sync/modules/util.js
/**
   * Return a value for a backoff interval.  Maximum is eight hours, unless
   * Status.backoffInterval is higher.
   *
   */
Return a value for a backoff interval.  Maximum is eight hours, unless
Status.backoffInterval is higher.
Return a value for a backoff interval . Maximum is eight hours unless Status . backoffInterval is higher .
function calculateBackoff(attempts, baseInterval,
                                              statusInterval) {
    let backoffInterval = attempts *
                          (Math.floor(Math.random() * baseInterval) +
                           baseInterval);
    return Math.max(Math.min(backoffInterval, MAXIMUM_BACKOFF_INTERVAL),
                    statusInterval);
  }
function calculateBackoff ( attempts , baseInterval , statusInterval ) { let backoffInterval = attempts * ( Math . floor ( Math . random ( ) * baseInterval ) + baseInterval ) ; return Math . max ( Math . min ( backoffInterval , MAXIMUM_BACKOFF_INTERVAL ) , statusInterval ) ; }
Return a value for a backoff interval.
Return a value for a backoff interval .