Skip to content

Commit cda530f

Browse files
Merge pull request #636 from erikdarlingdata/dev
burg
2 parents d880a8c + b1c3f36 commit cda530f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sp_PerfCheck/sp_PerfCheck.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2004,7 +2004,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20042004
@server_uptime_hours =
20052005
DATEDIFF(SECOND, osi.sqlserver_start_time, GETDATE()) / 3600.0
20062006
FROM sys.dm_os_wait_stats AS osw
2007-
CROSS JOIN sys.dm_os_sys_info AS osi;
2007+
CROSS JOIN sys.dm_os_sys_info AS osi
2008+
GROUP BY
2009+
DATEDIFF(SECOND, osi.sqlserver_start_time, GETDATE()) / 3600.0;
20082010

20092011
SET @pagelatch_ratio_to_uptime =
20102012
@pagelatch_wait_hours / NULLIF(@server_uptime_hours, 0) * 100;

0 commit comments

Comments
 (0)