@@ -143,7 +143,7 @@ private function checkSshReachability(
143143 if ($ consecutiveSuccesses >= $ reachabilityCheckCount ) {
144144 return true ;
145145 }
146-
146+
147147 // Only sleep if there's enough time remaining for another check
148148 if ((microtime (true ) - $ startTime + $ reachabilityCheckInterval ) < $ timeout ) {
149149 sleep ($ reachabilityCheckInterval );
@@ -160,7 +160,7 @@ private function checkSshReachability(
160160 );
161161 }
162162 $ consecutiveSuccesses = 0 ;
163-
163+
164164 // Only sleep if there's enough time remaining for another check
165165 if ((microtime (true ) - $ startTime + $ reachabilityCheckInterval ) < $ timeout ) {
166166 sleep ($ reachabilityCheckInterval );
@@ -246,11 +246,11 @@ private function waitForAvailabilityInternal(
246246 $ brancherHypernode
247247 )
248248 );
249-
249+
250250 // Allocate a portion of timeout for initial SSH check to leave time for fallback
251251 $ sshCheckTimeout = (int ) ($ timeout * self ::REUSED_SSH_CHECK_TIMEOUT_RATIO );
252252 $ sshCheckStartTime = microtime (true );
253-
253+
254254 if ($ this ->checkSshReachability ($ brancherHypernode , $ sshCheckTimeout , $ reachabilityCheckCount , $ reachabilityCheckInterval )) {
255255 $ this ->log ->info (
256256 sprintf (
@@ -260,11 +260,11 @@ private function waitForAvailabilityInternal(
260260 );
261261 return ;
262262 }
263-
263+
264264 // Adjust timeout for remaining checks based on time already spent
265265 $ timeSpentOnSshCheck = microtime (true ) - $ sshCheckStartTime ;
266266 $ timeout = max (1 , (int ) ($ timeout - $ timeSpentOnSshCheck ));
267-
267+
268268 $ this ->log ->info (
269269 sprintf (
270270 'Reused brancher Hypernode %s is not yet reachable, proceeding with full availability wait... ' ,
0 commit comments