Skip to content

Commit cd4fcb7

Browse files
committed
Fixed Resource Semphore conversion issue
What a stupid bug. I am dumb. Tested against various variables and local wait stats. Works now.
1 parent 6c91537 commit cd4fcb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sp_Blitz.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,7 @@ AS
24062406
'Performance' AS FindingGroup ,
24072407
'Poison Wait Detected: RESOURCE_SEMAPHORE' AS Finding ,
24082408
'http://BrentOzar.com/go/poison' AS URL ,
2409-
CAST(SUM([wait_time_ms]) / 10000 / 1000 / 60 / 60 / 24 AS VARCHAR) + CAST(CONVERT(TIME, DATEADD(ms, SUM([wait_time_ms] / 10000 % 1000), DATEADD(ss, SUM([wait_time_ms] / 10000000), 0))) AS VARCHAR) + ' of this wait have been recorded. This wait often indicates killer performance problems.'
2409+
CONVERT(VARCHAR(10), (SUM([wait_time_ms]) / 1000) / 86400) + ':' + CONVERT(VARCHAR(20), DATEADD(s, (SUM([wait_time_ms]) / 1000), 0), 108) + ' of this wait have been recorded. This wait often indicates killer performance problems.'
24102410
FROM sys.[dm_os_wait_stats]
24112411
WHERE wait_type = 'RESOURCE_SEMAPHORE'
24122412
GROUP BY wait_type

0 commit comments

Comments
 (0)