Skip to content

Commit

Permalink
Merge pull request #50 from VladDBA/dev
Browse files Browse the repository at this point in the history
Add files via upload
  • Loading branch information
VladDBA authored Jan 12, 2023
2 parents 84fa1c1 + d592897 commit be8c99e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PSBlitz.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ SOFTWARE.

###Internal params
#Version
$Vers = "2.2.2"
$VersDate = "20230105"
$Vers = "2.2.3"
$VersDate = "20230112"
#Get script path
$ScriptPath = split-path -parent $MyInvocation.MyCommand.Definition
#Set resources path
Expand Down Expand Up @@ -1789,7 +1789,7 @@ try {
[int]$TwoThirdsBlitzCache = [Math]::Floor([decimal]($BlitzCacheRecs / 1.5))
[string]$DBName = $DBArray | Group -NoElement | Sort Count | % Name | Select -Last 1
[int]$DBCount = $DBArray | Group -NoElement | Sort Count | % Count | Select -Last 1
if($DBCount -ge $TwoThirdsBlitzCache){
if(($DBCount -ge $TwoThirdsBlitzCache) -and ($DBName -ne "-- N/A --")){
Write-Host " $DBName accounts for at least 2/3 of the records returned by sp_BlitzCache"
Write-Host " ->" -NoNewLine
[string]$CheckDB = $DBName
Expand Down

0 comments on commit be8c99e

Please sign in to comment.