Skip to content

Commit

Permalink
Merge pull request #47 from VladDBA/dev
Browse files Browse the repository at this point in the history
Add files via upload
  • Loading branch information
VladDBA authored Jan 5, 2023
2 parents cf09885 + 1585abe commit ae9a5a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PSBlitz.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae9a5a1

Please sign in to comment.