Skip to content

Commit 9ad7306

Browse files
Removing other change that got declined.
1 parent 4ae548e commit 9ad7306

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sp_Blitz.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ ALTER PROCEDURE [dbo].[sp_Blitz]
2727
@BringThePain TINYINT = 0 ,
2828
@UsualDBOwner sysname = NULL ,
2929
@UsualOwnerOfJobs sysname = NULL , -- This is to set the owner of Jobs is you have a different account than SA that you use as Default
30-
@MaxPercentTembdbFileVariation DECIMAL(3,2) = 0.10, -- set to a decent Default percent, I went with ten as a good start
3130
@SkipBlockingChecks TINYINT = 1 ,
3231
@Debug TINYINT = 0 ,
3332
@Version VARCHAR(30) = NULL OUTPUT,
@@ -3208,10 +3207,11 @@ AS
32083207

32093208
BEGIN
32103209

3211-
IF (SELECT (MAX((size * 8)) * 1.0)/(MIN((size * 8)) *1.0) - 1.0
3210+
IF ( SELECT COUNT (distinct [size])
32123211
FROM tempdb.sys.database_files
32133212
WHERE type_desc = 'ROWS'
3214-
) > @MaxPercentTembdbFileVariation
3213+
HAVING MAX((size * 8) / (1024. * 1024)) - MIN((size * 8) / (1024. * 1024)) > 1.
3214+
) <> 1
32153215
BEGIN
32163216

32173217
IF @Debug IN (1, 2) RAISERROR('Running CheckId [%d].', 0, 1, 183) WITH NOWAIT;

0 commit comments

Comments
 (0)