From d240183635f226b8609209cd426bfe0adfb484c4 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 11 Oct 2023 21:46:04 -0400 Subject: [PATCH] Minor profile bug fix to prevent sample stop time from being 5 minutes too far out --- api/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/profile.php b/api/profile.php index 1d62478..d711258 100644 --- a/api/profile.php +++ b/api/profile.php @@ -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 &&