🥅 Ensure int for printTimeLeft from plugins

See #4084
This commit is contained in:
Gina Häußge committed 2021-05-18 14:42:24 +02:00
1 parent e4fff3ff4f
commit 5d326e9c57
1 file changed
+2 -1
+2 -1
View File
@@ -1184,13 +1184,14 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
)
try:
printTimeLeft, printTimeLeftOrigin = estimator.estimate(
ptl, printTimeLeftOrigin = estimator.estimate(
progress,
printTime,
cleanedPrintTime,
statisticalTotalPrintTime,
statisticalTotalPrintTimeType,
)
printTimeLeft = int(ptl)
except Exception:
self._logger.exception(
"Error while estimating print time via {}".format(estimator)