Add test for less than 6 low temps

This commit is contained in:
Julia Friesel
2018-06-30 16:39:46 +02:00
parent d1f2922357
commit 5e0601320b
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ function detectTemperatureShift(temperaturesOfCycle) {
// if no shift has been detected, we collect low temps
// after the shift has been detected, we count them as part
// of the higher temperature phase
if (acc.low.length < 7) {
if (acc.low.length < 6) {
acc.low.push(curr)
acc.ltl = Math.max(...acc.low.slice(-6))
// TODO these are the same