Stop using deprecated timeutils.total_seconds()

This function has been deprecated. It was only useful for Python <= 2.6.

Change-Id: Ic0ca83920e9ed0692277bf5d903d3df91d1adcde
This commit is contained in:
Julien Danjou 2015-11-27 09:54:33 +01:00
parent ee79ee3726
commit 6afe39533e
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class AgentSchedulerDbMixin(agents_db.AgentDbMixin):
# detected, sleep for a while to let the agents check in.
tdelta = timeutils.utcnow() - getattr(self, '_clock_jump_canary',
timeutils.utcnow())
if timeutils.total_seconds(tdelta) > cfg.CONF.agent_down_time:
if tdelta.total_seconds() > cfg.CONF.agent_down_time:
LOG.warn(_LW("Time since last %s agent reschedule check has "
"exceeded the interval between checks. Waiting "
"before check to allow agents to send a heartbeat "