Fixing exists audit period migration script

This commit is contained in:
Andrew Melton 2013-04-02 10:47:24 -04:00
parent 00c54c9f79
commit 54a16b67a2

View File

@ -19,7 +19,7 @@ from stacktach import models
from stacktach import utils
if __name__ != '__main':
if __name__ != '__main__':
sys.exit(1)
@ -32,7 +32,7 @@ exists = models.InstanceExists.objects.all()
count = exists.count()
start = datetime.datetime.utcnow()
print "%s records to populate"
print "%s records to populate" % count
update_interval = datetime.timedelta(seconds=30)
next_update = start + update_interval