Skip to content

Commit

Permalink
sp_Blitz: handle 8MB free
Browse files Browse the repository at this point in the history
No arithmetic overflow even when your hard drive has just 8MB free. Closes #2837.
  • Loading branch information
BrentOzar committed Mar 24, 2021
1 parent 922e5fc commit e2a4e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sp_Blitz.sql
Expand Up @@ -8407,7 +8407,7 @@ IF @ProductVersionMajor >= 10 AND NOT EXISTS ( SELECT 1
,CASE WHEN ISNULL(logical_volume_name,'''') = '''' THEN '''' ELSE '' ('' + logical_volume_name + '')'' END AS logical_volume_name
,total_bytes/1024/1024 AS total_MB
,available_bytes/1024/1024 AS available_MB
,(CONVERT(DECIMAL(4,2),(total_bytes/1.0 - available_bytes)/total_bytes * 100)) AS used_percent
,(CONVERT(DECIMAL(5,2),(total_bytes/1.0 - available_bytes)/total_bytes * 100)) AS used_percent
FROM
(SELECT TOP 1 WITH TIES
database_id
Expand Down

0 comments on commit e2a4e7f

Please sign in to comment.