Skip to content

Commit c894543

Browse files
authored
fix(perf): Fix statsPeriod tag value to be rounded (#20240)
The value wasn't rounded and was (very rarely) including decimals.
1 parent 97c8ab0 commit c894543

File tree

1 file changed

+1
-1
lines changed
  • src/sentry/static/sentry/app/views/performance

1 file changed

+1
-1
lines changed

src/sentry/static/sentry/app/views/performance/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function addRoutePerformanceContext(selection: GlobalSelection) {
5252
selection.datetime.start,
5353
selection.datetime.end
5454
);
55-
const seconds = days * 86400;
55+
const seconds = Math.floor(days * 86400);
5656

5757
transaction?.setTag('statsPeriod', seconds.toString());
5858
}

0 commit comments

Comments
 (0)