From 049601353ca8ca6c0c8e8edcb3f51a24abae3e18 Mon Sep 17 00:00:00 2001 From: Tim Schoondergang <$2> Date: Fri, 21 Jun 2024 11:44:13 +0200 Subject: [PATCH] instead of $stop - $start use the defined $elapsed var as the var $stop isn't set. --- phpseclib/Net/SSH2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 738b8e9c..802db57e 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -3701,7 +3701,7 @@ class SSH2 $current = microtime(true); $message_number = isset(self::$message_numbers[ord($payload[0])]) ? self::$message_numbers[ord($payload[0])] : 'UNKNOWN (' . ord($payload[0]) . ')'; $message_number = '<- ' . $message_number . - ' (since last: ' . round($current - $this->last_packet, 4) . ', network: ' . round($stop - $start, 4) . 's)'; + ' (since last: ' . round($current - $this->last_packet, 4) . ', network: ' . round($elapsed, 4) . 's)'; $this->append_log($message_number, $payload); $this->last_packet = $current; }