SSH2: CS adjustments

This commit is contained in:
terrafrost 2024-08-15 23:38:47 -05:00
parent e2488749ae
commit 94bd3ad078

View File

@ -1367,9 +1367,9 @@ class SSH2
}
}
if (defined('NET_SSH2_LOGGING')) {
$this->append_log('(fsockopen took ' . round($elapsed, 4) . 's)', '');
}
if (defined('NET_SSH2_LOGGING')) {
$this->append_log('(fsockopen took ' . round($elapsed, 4) . 's)', '');
}
}
$this->identifier = $this->generate_identifier();
@ -1408,7 +1408,7 @@ class SSH2
throw new \RuntimeException('Connection timed out whilst receiving server identification string');
}
$elapsed = microtime(true) - $start;
$totalElapsed+= $elapsed;
$totalElapsed += $elapsed;
$this->curTimeout -= $elapsed;
}