Skip to content

Commit

Permalink
BrentOzarULTD#3370 Division by zero in check 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Montro1981 committed Oct 9, 2023
1 parent 5e7f4f2 commit 240d357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sp_BlitzFirst.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3364,8 +3364,8 @@ If one of them is a lead blocker, consider killing that query.'' AS HowToStopit,
'Server Info' AS FindingGroup,
'Wait Time per Core per Sec' AS Finding,
'https://www.brentozar.com/go/measure' AS URL,
CAST((CAST(waits2.waits_ms - waits1.waits_ms AS MONEY)) / 1000 / i.cpu_count / DATEDIFF(ss, waits1.SampleTime, waits2.SampleTime) AS NVARCHAR(20)) AS Details,
(waits2.waits_ms - waits1.waits_ms) / 1000 / i.cpu_count / DATEDIFF(ss, waits1.SampleTime, waits2.SampleTime) AS DetailsInt
CAST((CAST(waits2.waits_ms - waits1.waits_ms AS MONEY)) / 1000 / i.cpu_count / ISNULL(NULLIF(DATEDIFF(ss, waits1.SampleTime, waits2.SampleTime), 0), 1) AS NVARCHAR(20)) AS Details,
(waits2.waits_ms - waits1.waits_ms) / 1000 / i.cpu_count / ISNULL(NULLIF(DATEDIFF(ss, waits1.SampleTime, waits2.SampleTime), 0), 1) AS DetailsInt
FROM cores i
CROSS JOIN waits1
CROSS JOIN waits2;
Expand Down

0 comments on commit 240d357

Please sign in to comment.