From 142a1b0dcbab544e6aafb9e10e0cd1d9c64c6ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 13 Jul 2017 15:48:22 +0200 Subject: [PATCH] Progress might be 0, don't divide by it then --- src/octoprint/printer/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index 527f502a..d36e5553 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -763,7 +763,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback): (2-tuple) estimated print time left or None if not proper estimate could be made at all, origin of estimation """ - if progress is None or printTime is None or cleanedPrintTime is None: + if progress is None or progress == 0 or printTime is None or cleanedPrintTime is None: return None, None dumbTotalPrintTime = printTime / progress