File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,11 +96,13 @@ function safeUpdateDashboard(data) {
9696
9797 // Update overview stats with null checks
9898 const totalQueries = data . total_queries !== undefined ? data . total_queries : 0 ;
99+ const blockedQueries = data . blocked_queries !== undefined ? data . blocked_queries : 0 ;
99100 const qps = data . queries_per_second !== undefined ? data . queries_per_second : 0 ;
100101 const uptime = data . uptime_seconds !== undefined ? data . uptime_seconds : 0 ;
101102 const avgResponseTime = data . avg_response_time !== undefined ? data . avg_response_time : 0 ;
102103
103104 document . getElementById ( 'total-queries' ) . textContent = totalQueries . toLocaleString ( ) ;
105+ document . getElementById ( 'blocked-queries' ) . textContent = blockedQueries . toLocaleString ( ) ;
104106 document . getElementById ( 'qps' ) . textContent = qps . toFixed ( 2 ) ;
105107 document . getElementById ( 'uptime' ) . textContent = formatUptime ( uptime ) ;
106108 document . getElementById ( 'avg-response-time' ) . textContent = avgResponseTime . toFixed ( 2 ) + ' ms' ;
@@ -397,6 +399,7 @@ window.handlePollData = function(data) {
397399// Initialize dashboard with default values
398400function initializeDashboard ( ) {
399401 document . getElementById ( 'total-queries' ) . textContent = '0' ;
402+ document . getElementById ( 'blocked-queries' ) . textContent = '0' ;
400403 document . getElementById ( 'qps' ) . textContent = '0.00' ;
401404 document . getElementById ( 'uptime' ) . textContent = '0s' ;
402405 document . getElementById ( 'avg-response-time' ) . textContent = '0.00 ms' ;
You can’t perform that action at this time.
0 commit comments