From 51b1280e1eafec8151f7b1becabbfcae0c6fed31 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sat, 14 Feb 2015 17:51:13 -0800 Subject: [PATCH] Better status messages for main.py --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index aab9a97..eda68f3 100755 --- a/main.py +++ b/main.py @@ -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)