Skip to content

Commit

Permalink
Fixed bug in recurring scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Apr 10, 2015
1 parent 93e13ac commit 05453e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion applications/snapback/aciconfigdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@ def run(self):
print 'Next snapshot in', self._next_snapshot_time
time.sleep(seconds)
else:
delta = datetime.datetime.now() - start
delta = start - datetime.datetime.now()
seconds = delta.seconds + delta.days * (24 * 60 * 60)
self._next_snapshot_time = start
if seconds == 0:
seconds = 1
time.sleep(seconds)


Expand Down

0 comments on commit 05453e1

Please sign in to comment.