Skip to content

Commit 1f37d1c

Browse files
author
Dora Chan
committed
fixing percentages
1 parent 36e4a27 commit 1f37d1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sentry/static/sentry/app/views/eventsV2/eventDetails/transaction/eventBreakdown.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ class EventBreakdown extends React.Component<Props> {
169169
<SectionHeading>{t('Ops Breakdown')}</SectionHeading>
170170
{results.ops.map(currentOp => {
171171
const {name, percentage, totalDuration} = currentOp;
172-
const pctLabel = Math.round(percentage * 100) / 100;
173-
const durLabel = Math.round(totalDuration * 100) / 100;
172+
const durLabel = Math.round(totalDuration * 1000);
173+
const pctLabel = Math.round(percentage * 100);
174174
const opsColor: string = pickSpanBarColour(name);
175175

176176
return (
@@ -222,7 +222,7 @@ const Dur = styled('div')`
222222
`;
223223

224224
const Pct = styled('div')`
225-
min-width: 50px;
225+
min-width: 40px;
226226
text-align: right;
227227
`;
228228

0 commit comments

Comments
 (0)