Commit dcc5f023 authored by Guillaume Seguin's avatar Guillaume Seguin

Minor cleanup on printcore

parent 9938b8e7
......@@ -67,9 +67,8 @@ if __name__ == '__main__':
while p.printing:
time.sleep(1)
if statusreport:
sys.stdout.write("Progress: %02.1f%%\r"
% (100 * float(p.queueindex)
/ len(p.mainqueue),))
progress = 100 * float(p.queueindex) / len(p.mainqueue)
sys.stdout.write("Progress: %02.1f%%\r" % progress)
sys.stdout.flush()
p.disconnect()
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