mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Merge pull request #11690 from jimduchek/usbprint_exception_fix
USBPrinterOutputDevice.py: Convert estimated time to int
This commit is contained in:
commit
bdcbaeb65c
1 changed files with 2 additions and 2 deletions
|
@ -429,7 +429,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
|||
print_job.updateTimeElapsed(elapsed_time)
|
||||
estimated_time = self._print_estimated_time
|
||||
if progress > .1:
|
||||
estimated_time = self._print_estimated_time * (1 - progress) + elapsed_time
|
||||
estimated_time = int(self._print_estimated_time * (1 - progress) + elapsed_time)
|
||||
print_job.updateTimeTotal(estimated_time)
|
||||
|
||||
self._gcode_position += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue