mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-27 00:58:25 +00:00
Merge pull request #2010 from timmit-nl/bugfix-undefined-variable-stop
instead of $stop - $start use the defined $elapsed var
This commit is contained in:
commit
76e81b5348
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user