Skip to content

Commit

Permalink
Minor profile bug fix to prevent sample stop time from being 5 minute…
Browse files Browse the repository at this point in the history
…s too far out
  • Loading branch information
ziebelje committed Oct 12, 2023
1 parent bbd050e commit d240183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/profile.php
Expand Up @@ -741,7 +741,7 @@ public function generate($thermostat_id, $debug = false) {
// 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 &&
Expand Down

0 comments on commit d240183

Please sign in to comment.