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) {
114
114
trend = { value : FALLBACK_VALUE , direction : 'up' } ;
115
115
}
116
116
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} ;
120
118
} ;
121
119
122
120
// Calculate latency
@@ -136,15 +134,14 @@ export function QueriesActivityBar({tenantName}: QueriesActivityBarProps) {
136
134
if ( previous > 0 ) {
137
135
const change = current - previous ;
138
136
trend = {
139
- value : Math . abs ( change ) / 1000 || FALLBACK_VALUE , // Convert to ms
137
+ value : Math . abs ( change ) || FALLBACK_VALUE ,
140
138
direction : change >= 0 ? 'up' : 'down' ,
141
139
} ;
142
140
} else {
143
141
trend = { value : FALLBACK_VALUE , direction : 'up' } ;
144
142
}
145
143
146
- const valueMs = current / 1000 || FALLBACK_VALUE ; // Convert to ms
147
- return { value : valueMs . toFixed ( 1 ) , trend} ;
144
+ return { value : current . toFixed ( 1 ) , trend} ;
148
145
} ;
149
146
150
147
const qps = calculateQueriesPerSecond ( ) ;
You can’t perform that action at this time.
0 commit comments