From 1585abedb7067a7437fae78a862e64a686999c7b Mon Sep 17 00:00:00 2001 From: Vlad Drumea <48413726+VladDBA@users.noreply.github.com> Date: Thu, 5 Jan 2023 14:46:59 +0200 Subject: [PATCH] Add files via upload --- PSBlitz.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PSBlitz.ps1 b/PSBlitz.ps1 index 8fa6dcc..1d14e57 100644 --- a/PSBlitz.ps1 +++ b/PSBlitz.ps1 @@ -1632,8 +1632,9 @@ try { #Change date range if execution time so far > 15min if([Math]::Round($CurrRunTime) -gt 15){ $CurrMin = [Math]::Round($CurrRunTime) - Write-Host " ->Current execution time is $CurrMin minutes" -fore green - Write-Host " ->Retrieving deadlock info for the last 7 days instead of 15" -fore green + Write-Host "" + Write-Host " ->Current execution time is $CurrMin minutes" + Write-Host " ->Retrieving deadlock info for the last 7 days instead of 15... " -NoNewLine [string]$Query = $Query -replace "@StartDate = DATEADD(DAY,-15, GETDATE()),", "@StartDate = DATEADD(DAY,-7, GETDATE())," } $BlitzLockQuery = new-object System.Data.SqlClient.SqlCommand