1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Minor profile bug fix to prevent sample stop time from being 5 minutes too far out

This commit is contained in:
Jon Ziebell 2023-10-11 21:46:04 -04:00
parent bbd050ee94
commit d240183635

View File

@ -741,7 +741,7 @@ class profile extends cora\crud {
// Start looking ahead into the next 30 minutes looking for changes
// to event_runtime_thermostat_text_id and climate_runtime_thermostat_text_id.
$lookahead = $five_minutes;
while($lookahead <= $thirty_minutes) {
while($lookahead < $thirty_minutes) {
if(
isset($runtime[$current_timestamp + $lookahead]) === true &&
isset($runtime[$current_timestamp + $lookahead][$thermostat_id]) === true &&