diff --git a/Snowflake.Data/Core/Session/SessionPool.cs b/Snowflake.Data/Core/Session/SessionPool.cs index 0f4b0700c..33ab68339 100644 --- a/Snowflake.Data/Core/Session/SessionPool.cs +++ b/Snowflake.Data/Core/Session/SessionPool.cs @@ -170,7 +170,7 @@ private SFSession WaitForSession(string connStr) { var timeout = _waitingQueue.GetWaitingTimeoutMillis(); s_logger.Warn($"SessionPool::WaitForSession for {timeout} millis timeout"); - var beforeWaitingTime = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); + var beforeWaitingTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); string debugApplicationName = ""; if (connStr.EndsWith("application=TestWaitForMaxSize1")) debugApplicationName = "TestWaitForMaxSize1"; @@ -201,7 +201,7 @@ private SFSession WaitForSession(string connStr) { s_logger.Warn($"SessionPool::WaitForSession - woken without a session granted for: {debugApplicationName}"); } - nowTime = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); + nowTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); } s_logger.Warn($"SessionPool::WaitForSession - could not find any idle session available withing a given timeout for: {debugApplicationName} at: {nowTime}"); throw WaitingFailedException();