File tree Expand file tree Collapse file tree 3 files changed +379
-101
lines changed
plugins/apm/server/lib/transactions/charts/get_timeseries_data
basic/tests/transaction_groups/__snapshots__
trial/tests/csm/__snapshots__ Expand file tree Collapse file tree 3 files changed +379
-101
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,10 @@ export function getTpmBuckets({
5858 const buckets = transactionResultBuckets . map (
5959 ( { key : resultKey , timeseries } ) => {
6060 const dataPoints = timeseries . buckets . map ( ( bucket ) => {
61- // calculate request/minute. Avoid up-scaling numbers if bucketSize is below 60s (1 minute).
62- // Eg. 1 request during a 10 second window should be displayed as "1 rpm" instead of "6 rpm".
63- const tmpValue = bucket . count . value * ( 60 / Math . max ( 60 , bucketSize ) ) ;
6461 return {
6562 x : bucket . key ,
66- y : tmpValue ,
63+ // divide by minutes
64+ y : bucket . count . value / ( bucketSize / 60 ) ,
6765 } ;
6866 } ) ;
6967
You can’t perform that action at this time.
0 commit comments