Skip to content

Commit

Permalink
Fixed Resource Semphore conversion issue
Browse files Browse the repository at this point in the history
What a stupid bug. I am dumb.
Tested against various variables and local wait stats.
Works now.
  • Loading branch information
BlitzErik committed Jun 7, 2016
1 parent 6c91537 commit cd4fcb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sp_Blitz.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2406,7 +2406,7 @@ AS
'Performance' AS FindingGroup ,
'Poison Wait Detected: RESOURCE_SEMAPHORE' AS Finding ,
'http://BrentOzar.com/go/poison' AS URL ,
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.'
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.'
FROM sys.[dm_os_wait_stats]
WHERE wait_type = 'RESOURCE_SEMAPHORE'
GROUP BY wait_type
Expand Down

0 comments on commit cd4fcb7

Please sign in to comment.