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:
parent
bbd050ee94
commit
d240183635
@ -741,7 +741,7 @@ class profile extends cora\crud {
|
|||||||
// Start looking ahead into the next 30 minutes looking for changes
|
// Start looking ahead into the next 30 minutes looking for changes
|
||||||
// to event_runtime_thermostat_text_id and climate_runtime_thermostat_text_id.
|
// to event_runtime_thermostat_text_id and climate_runtime_thermostat_text_id.
|
||||||
$lookahead = $five_minutes;
|
$lookahead = $five_minutes;
|
||||||
while($lookahead <= $thirty_minutes) {
|
while($lookahead < $thirty_minutes) {
|
||||||
if(
|
if(
|
||||||
isset($runtime[$current_timestamp + $lookahead]) === true &&
|
isset($runtime[$current_timestamp + $lookahead]) === true &&
|
||||||
isset($runtime[$current_timestamp + $lookahead][$thermostat_id]) === true &&
|
isset($runtime[$current_timestamp + $lookahead][$thermostat_id]) === true &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user