Skip to content

Commit 68a68c6

Browse files
fix: Fix misnomer in PortScanner timeout log message (#240)
1 parent ac60f8f commit 68a68c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CommonLib/Processors/PortScanner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public virtual async Task<bool> CheckPort(string hostname, int port = 445,
4444
using var client = new TcpClient();
4545
var ca = await _adaptiveTimeout.ExecuteWithTimeout((_) => client.ConnectAsync(hostname, port));
4646
if (!ca.IsSuccess) {
47-
_log.LogDebug("{HostName} did not respond to scan on port {Port} within {Timeout}ms", hostname, port, _adaptiveTimeout.GetAdaptiveTimeout());
47+
_log.LogDebug("{HostName} did not respond to scan on port {Port} within {TimeoutMs}ms", hostname, port, _adaptiveTimeout.GetAdaptiveTimeout().TotalMilliseconds);
4848
if (throwError) {
4949
throw new TimeoutException(ca.Error);
5050
}

0 commit comments

Comments
 (0)