Commit dcc5f023 authored by Guillaume Seguin's avatar Guillaume Seguin

Minor cleanup on printcore

parent 9938b8e7
...@@ -67,9 +67,8 @@ if __name__ == '__main__': ...@@ -67,9 +67,8 @@ if __name__ == '__main__':
while p.printing: while p.printing:
time.sleep(1) time.sleep(1)
if statusreport: if statusreport:
sys.stdout.write("Progress: %02.1f%%\r" progress = 100 * float(p.queueindex) / len(p.mainqueue)
% (100 * float(p.queueindex) sys.stdout.write("Progress: %02.1f%%\r" % progress)
/ len(p.mainqueue),))
sys.stdout.flush() sys.stdout.flush()
p.disconnect() p.disconnect()
sys.exit(0) sys.exit(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment