diff --git a/displaypc.asp b/displaypc.asp index 0cd615e..1a8005c 100644 --- a/displaypc.asp +++ b/displaypc.asp @@ -749,7 +749,8 @@ End If "(SELECT COUNT(*) FROM ednclogs WHERE machineid = ? AND action = 'cleaned') AS total_cleaned, " & _ "(SELECT COUNT(*) FROM ednclogs WHERE machineid = ? AND action IN ('failed', 'error')) AS total_failed, " & _ "(SELECT COUNT(*) FROM ednclogs WHERE machineid = ? AND created > DATE_SUB(NOW(), INTERVAL 24 HOUR)) AS events_24h, " & _ - "(SELECT MAX(created) FROM ednclogs WHERE machineid = ? AND action = 'cleaned') AS last_cleaned" + "(SELECT MAX(created) FROM ednclogs WHERE machineid = ? AND action = 'cleaned') AS last_cleaned " & _ + "FROM DUAL" Set rsEdnc = ExecuteParameterizedQuery(objConn, edncSQL, Array(machineid, machineid, machineid, machineid, machineid, machineid, machineid)) If Not rsEdnc.EOF And Not IsNull(rsEdnc("first_seen")) Then hasEdnc = True @@ -772,11 +773,11 @@ End If Files Cleaned - <%= rsEdnc("total_cleaned") %> + <%= rsEdnc("total_cleaned") %> Files Failed - 0, "danger", "secondary") %>"><%= rsEdnc("total_failed") %> + <%= rsEdnc("total_failed") %> Events (24h) @@ -848,7 +849,6 @@ End If End If rsEdnc.Close Set rsEdnc = Nothing - End If %>