Fix little bug on endfile

parent 6b66a85d
......@@ -176,7 +176,7 @@ class RemainingTimeEstimator(object):
layer, line = self.gcode.idxs(idx)
except:
self.last_idx = idx
return (0, total)
return (0, printtime)
layer_progress = (1 - (float(line + 1) / self.current_layer_lines))
remaining = layer_progress * self.current_layer_estimate + self.remaining_layers_estimate
estimate = self.drift * remaining
......
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