splice to ensure shifts never fall behind

This commit is contained in:
Nick Krecklow 2020-05-11 18:36:22 -05:00
parent 903343fbdf
commit 3998b688ab
No known key found for this signature in database
GPG Key ID: 5F149FDE156FFA94

@ -73,7 +73,7 @@ class TimeTracker {
array.push(value)
if (array.length > maxLength) {
array.shift()
array.splice(0, array.length - maxLength)
}
}
}