Esempio n. 1
0
 def _get_audit_period():
     now = datetime.datetime.now()
     audit_start = utils.isotime(now, subsecond=True)
     audit_end = utils.isotime(now + datetime.timedelta(
         seconds=CONF.exists_notification_ticks * CONF.report_interval),
                               subsecond=True)
     return audit_start, audit_end
Esempio n. 2
0
 def _get_audit_period():
     now = datetime.datetime.now()
     audit_start = utils.isotime(now, subsecond=True)
     audit_end = utils.isotime(
         now + datetime.timedelta(seconds=CONF.exists_notification_ticks * CONF.report_interval), subsecond=True
     )
     return audit_start, audit_end