Commit 4dc43e4d authored by blddk's avatar blddk

Fixed format for the progress values returned for printing and printing from sd

parent afc22d71
...@@ -203,11 +203,11 @@ class XMLstatus(object): ...@@ -203,11 +203,11 @@ class XMLstatus(object):
pass pass
if gPronterPtr.sdprinting: if gPronterPtr.sdprinting:
fractioncomplete = float(gPronterPtr.percentdone/100.0) fractioncomplete = float(gPronterPtr.percentdone/100.0)
txt+= _("<progress>%04.2f %%") % (gPronterPtr.percentdone,) txt+= _("<progress>%04.2f") % (gPronterPtr.percentdone,)
txt+="</progress>\n" txt+="</progress>\n"
elif gPronterPtr.p.printing: elif gPronterPtr.p.printing:
fractioncomplete = float(gPronterPtr.p.queueindex)/len(gPronterPtr.p.mainqueue) fractioncomplete = float(gPronterPtr.p.queueindex)/len(gPronterPtr.p.mainqueue)
txt+= _("<progress>%04.2f %% |") % (100*float(gPronterPtr.p.queueindex)/len(gPronterPtr.p.mainqueue),) txt+= _("<progress>%04.2f") % (100*float(gPronterPtr.p.queueindex)/len(gPronterPtr.p.mainqueue),)
txt+="</progress>\n" txt+="</progress>\n"
else: else:
txt+="<progress>NA</progress>\n" txt+="<progress>NA</progress>\n"
......
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