britney: Move britney's start of day to 7 pm

In preparation for running Britney 4 times a day and we wanting the
22:00 UTC run to do the aging.

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 8 years ago
parent 57bc721f50
commit 189edf42ec

@ -240,8 +240,8 @@ class AgePolicy(BasePolicy):
if options.default_urgency not in mindays: # pragma: no cover if options.default_urgency not in mindays: # pragma: no cover
raise ValueError("Missing age-requirement for default urgency (MINDAYS_%s)" % options.default_urgency) raise ValueError("Missing age-requirement for default urgency (MINDAYS_%s)" % options.default_urgency)
self._min_days_default = mindays[options.default_urgency] self._min_days_default = mindays[options.default_urgency]
# britney's "day" begins at 3pm # britney's "day" begins at 7pm (we want aging to occur in the 22:00Z run and we run Britney 2-4 times a day)
self._date_now = int(((time.time() / (60*60)) - 15) / 24) self._date_now = int(((time.time() / (60*60)) - 19) / 24)
self._dates = {} self._dates = {}
self._urgencies = {} self._urgencies = {}

Loading…
Cancel
Save