Skip to content

Commit c3cf546

Browse files
committed
ui: use period unit for source view
1 parent 77f4ccf commit c3cf546

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/packages/shared/profile/src/SourceView/Highlighter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const LineProfileMetadata = ({
8484

8585
const valueWithUnit = valueFormatter(
8686
value,
87-
profileSource?.ProfileType().sampleUnit ?? '',
87+
profileSource?.ProfileType().periodUnit ?? '',
8888
1,
8989
true
9090
);

ui/packages/shared/profile/src/SourceView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const SourceView = React.memo(function SourceView({
111111
return undefined;
112112
}
113113
return {
114-
line: newLine,
114+
line,
115115
cumulative: Number(data.cumulative),
116116
flat: Number(data.flat),
117117
};

0 commit comments

Comments
 (0)