Better status messages for main.py

This commit is contained in:
Steven Robertson 2015-02-14 17:51:13 -08:00
parent e70073175e
commit 51b1280e1e

View File

@ -128,17 +128,17 @@ def main(args, prof):
for name, times in frames:
if args.resume:
fp = name + rdr.out.suffix
if os.path.isfile(fp) and m < os.path.getmtime(f[0]+ext):
if os.path.isfile(fp) and m < os.path.getmtime(fp):
continue
for t in times:
for idx, t in enumerate(times):
evt, buf = rmgr.queue_frame(rdr, gnm, gprof, t, first)
first = False
while not evt.query():
time.sleep(0.01)
yield None
save(rdr.out, name, buf)
print name, evt.time()
print '%s (%3d/%3d), %dms' % (name, idx, len(times), evt.time())
yield name, buf
save(rdr.out, name, None)