Commit eeb8c1e7 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix ETA estimator (still the same gcoder API changes)

parent e1753261
...@@ -77,7 +77,7 @@ class RemainingTimeEstimator(object): ...@@ -77,7 +77,7 @@ class RemainingTimeEstimator(object):
if self.previous_layers_estimate > 0 and printtime > 0: if self.previous_layers_estimate > 0 and printtime > 0:
self.drift = printtime / self.previous_layers_estimate self.drift = printtime / self.previous_layers_estimate
self.current_layer_estimate = self.gcode.all_layers[layer].duration self.current_layer_estimate = self.gcode.all_layers[layer].duration
self.current_layer_lines = len(self.gcode.all_layers[layer].lines) self.current_layer_lines = len(self.gcode.all_layers[layer])
self.remaining_layers_estimate -= self.current_layer_estimate self.remaining_layers_estimate -= self.current_layer_estimate
self.last_idx = -1 self.last_idx = -1
self.last_estimate = None self.last_estimate = None
......
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