Added Estimated time left, and total time,
for non-SD Printing. They get more and more accurate until the end.master
parent
edeb43396f
commit
2079a99278
|
@ -1088,7 +1088,15 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
|
||||||
if self.sdprinting:
|
if self.sdprinting:
|
||||||
string+= _(" SD printing:%04.2f %%") % (self.percentdone,)
|
string+= _(" SD printing:%04.2f %%") % (self.percentdone,)
|
||||||
if self.p.printing:
|
if self.p.printing:
|
||||||
|
secondselapsed = int(time.time()-self.starttime)
|
||||||
|
fractioncomplete = float(self.p.queueindex)/len(self.p.mainqueue)
|
||||||
|
secondsestimate = secondselapsed/fractioncomplete
|
||||||
|
secondsremain = secondsestimate - secondselapsed
|
||||||
string+= _(" Printing:%04.2f %%") % (100*float(self.p.queueindex)/len(self.p.mainqueue),)
|
string+= _(" Printing:%04.2f %%") % (100*float(self.p.queueindex)/len(self.p.mainqueue),)
|
||||||
|
string+= _(" Estimated:%02.0f") % (int(secondsremain/60),)
|
||||||
|
string+= _(":%02.0f") % (int(secondsremain%60),)
|
||||||
|
string+= _(" of %02.0f") % (int(secondsestimate/60),)
|
||||||
|
string+= _(":%02.0f Remaining") % (int(secondsestimate%60),)
|
||||||
wx.CallAfter(self.status.SetStatusText,string)
|
wx.CallAfter(self.status.SetStatusText,string)
|
||||||
wx.CallAfter(self.gviz.Refresh)
|
wx.CallAfter(self.gviz.Refresh)
|
||||||
if(self.monitor and self.p.online):
|
if(self.monitor and self.p.online):
|
||||||
|
|
Loading…
Reference in New Issue