🐛 py3: ensure an int as rolling window size

Closes #3371
This commit is contained in:
Gina Häußge committed 2019-12-06 13:40:03 +01:00
1 parent 0dece85fa7
commit 124f01ca2d
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@ class PrintTimeEstimator(object):
interval = settings().getFloat(["serial", "timeout", "sdStatus"])
if interval <= 0:
interval = 1.0
rolling_window = 15 / interval
rolling_window = int(15 // interval)
if rolling_window < 1:
rolling_window = 1