mirror of
https://github.com/beestat/app.git
synced 2026-06-04 13:25:16 -04:00
Minor profile bug fix to prevent sample stop time from being 5 minutes too far out
This commit is contained in:
+1
-1
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user