From f389773036b5ef9f1e70cce0ef5d99634c3a5168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 9 Apr 2019 16:56:02 +0200 Subject: [PATCH] =?UTF-8?q?=E2=98=94=20Make=20sure=20rolling=20window=20is?= =?UTF-8?q?=20at=20least=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See #3116 --- src/octoprint/printer/estimation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/octoprint/printer/estimation.py b/src/octoprint/printer/estimation.py index 9bf5b0255..537760a8f 100644 --- a/src/octoprint/printer/estimation.py +++ b/src/octoprint/printer/estimation.py @@ -37,6 +37,8 @@ class PrintTimeEstimator(object): if interval <= 0: interval = 1.0 rolling_window = 15 / interval + if rolling_window < 1: + rolling_window = 1 # we are happy when one rolling window has been stable countdown = rolling_window