File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/components/QueriesActivityBar Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,7 @@ export function QueriesActivityBar({tenantName}: QueriesActivityBarProps) {
114114 trend = { value : FALLBACK_VALUE , direction : 'up' } ;
115115 }
116116
117- // Convert to per second rate
118- const perSecond = Math . round ( ( current / 60 ) * 100 ) / 100 || FALLBACK_VALUE ;
119- return { value : perSecond . toFixed ( 0 ) , trend} ;
117+ return { value : current . toFixed ( 0 ) , trend} ;
120118 } ;
121119
122120 // Calculate latency
@@ -136,15 +134,14 @@ export function QueriesActivityBar({tenantName}: QueriesActivityBarProps) {
136134 if ( previous > 0 ) {
137135 const change = current - previous ;
138136 trend = {
139- value : Math . abs ( change ) / 1000 || FALLBACK_VALUE , // Convert to ms
137+ value : Math . abs ( change ) || FALLBACK_VALUE ,
140138 direction : change >= 0 ? 'up' : 'down' ,
141139 } ;
142140 } else {
143141 trend = { value : FALLBACK_VALUE , direction : 'up' } ;
144142 }
145143
146- const valueMs = current / 1000 || FALLBACK_VALUE ; // Convert to ms
147- return { value : valueMs . toFixed ( 1 ) , trend} ;
144+ return { value : current . toFixed ( 1 ) , trend} ;
148145 } ;
149146
150147 const qps = calculateQueriesPerSecond ( ) ;
You can’t perform that action at this time.
0 commit comments