Fix bug with calculating background
This commit is contained in:
parent
5508e825a2
commit
11b99d8289
|
@ -28,8 +28,8 @@ function calcBackground() {
|
||||||
|
|
||||||
var period = (24 / backgroundList.length) * 60; // in minutes
|
var period = (24 / backgroundList.length) * 60; // in minutes
|
||||||
|
|
||||||
var background = backgroundList[Math.floor(total / period)];
|
var index = Math.floor(total / period);
|
||||||
setBackground(background.address, background.dark);
|
setBackground(index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue