mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 03:30:05 -05:00
Better status messages for main.py
This commit is contained in:
parent
e70073175e
commit
51b1280e1e
6
main.py
6
main.py
@ -128,17 +128,17 @@ def main(args, prof):
|
|||||||
for name, times in frames:
|
for name, times in frames:
|
||||||
if args.resume:
|
if args.resume:
|
||||||
fp = name + rdr.out.suffix
|
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
|
continue
|
||||||
|
|
||||||
for t in times:
|
for idx, t in enumerate(times):
|
||||||
evt, buf = rmgr.queue_frame(rdr, gnm, gprof, t, first)
|
evt, buf = rmgr.queue_frame(rdr, gnm, gprof, t, first)
|
||||||
first = False
|
first = False
|
||||||
while not evt.query():
|
while not evt.query():
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
yield None
|
yield None
|
||||||
save(rdr.out, name, buf)
|
save(rdr.out, name, buf)
|
||||||
print name, evt.time()
|
print '%s (%3d/%3d), %dms' % (name, idx, len(times), evt.time())
|
||||||
yield name, buf
|
yield name, buf
|
||||||
save(rdr.out, name, None)
|
save(rdr.out, name, None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user