- bug with skipping data, index must be an int

python3
Jason Bruce 2019-04-24 22:33:00 -04:00
rodzic 6746155e7e
commit 8046d9c214
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -39,7 +39,7 @@ class OvenWatcher(threading.Thread):
totalpts = len(self.last_log)
if (totalpts <= maxpts):
return self.last_log
every_nth = totalpts / (maxpts - 1)
every_nth = int(totalpts / (maxpts - 1))
return self.last_log[::every_nth]
def record(self, profile):