Skip to content

Commit

Permalink
Update x-pack/plugins/apm/server/lib/search_strategies/latency_correl…
Browse files Browse the repository at this point in the history
…ations/latency_correlations_search_service.ts


Use raw method instead of callback

Co-authored-by: Nathan L Smith <[email protected]>
  • Loading branch information
walterra and smith authored Oct 28, 2021
1 parent dd46276 commit 38b04a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const latencyCorrelationsSearchServiceProvider: LatencyCorrelationsSearch
// We need to round the percentiles values
// because the queries we're using based on it
// later on wouldn't allow numbers with decimals.
const percentiles = Object.values(percentilesRecords).map((p) =>
const percentiles = Object.values(percentilesRecords).map(Math.round)
Math.round(p)
);

Expand Down

0 comments on commit 38b04a5

Please sign in to comment.