More little adjustments to printcore.py output

master
Alessandro Ranellucci 2013-04-24 17:45:02 +02:00
parent 9c31998818
commit 8f3e5947c6
1 changed files with 2 additions and 2 deletions

View File

@ -383,12 +383,12 @@ if __name__ == '__main__':
try:
if statusreport:
p.loud = False
sys.stdout.write("Progress: 00.0%")
sys.stdout.write("Progress: 00.0%\r")
sys.stdout.flush()
while p.printing:
time.sleep(1)
if statusreport:
sys.stdout.write("%02.1f%%\r" % (100 * float(p.queueindex) / len(p.mainqueue),) )
sys.stdout.write("Progress: %02.1f%%\r" % (100 * float(p.queueindex) / len(p.mainqueue),) )
sys.stdout.flush()
p.disconnect()
sys.exit(0)