Home | History | Annotate | Download | only in update_manager

Lines Matching full:interval

173 // make the update check periodic interval configurable.
283 LOG(INFO) << "Periodic check interval not satisfied, blocking until "
591 // some interval. The interval is kTimeoutInitialInterval the first time and
593 // check fails, we increase the interval between the update checks
596 // fuzz to the interval.
616 // Check whether the server is enforcing a poll interval; if not, this value
622 int interval = *server_dictated_poll_interval;
625 // If no poll interval was dictated by server compute a back-off period,
626 // starting from a predetermined base periodic interval and increasing
628 if (interval == 0) {
633 interval = kTimeoutPeriodicInterval;
635 while (interval < kTimeoutMaxBackoffInterval && num_failures) {
636 interval *= 2;
641 // We cannot back off longer than the predetermined maximum interval.
642 if (interval > kTimeoutMaxBackoffInterval)
643 interval = kTimeoutMaxBackoffInterval;
645 // We cannot back off shorter than the predetermined periodic interval. Also,
647 if (interval <= kTimeoutPeriodicInterval) {
648 interval = kTimeoutPeriodicInterval;
652 // If not otherwise determined, defer to a fuzz of +/-(interval / 2).
654 fuzz = interval;
657 &prng, interval, fuzz);
661 TimeDelta ChromeOSPolicy::FuzzedInterval(PRNG* prng, int interval, int fuzz) {
662 DCHECK_GE(interval, 0);
665 // This guarantees the output interval is non negative.
666 int interval_min = max(interval - half_fuzz, 0);
667 int interval_max = interval + half_fuzz;