- fix bug in skipping data, slice must be an int
This commit is contained in:
parent
56fec3ede7
commit
795292c3d2
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user