Skip to content

Commit 77aa474

Browse files
authored
chore(TopQueries): convert duration to milliseconds (#731)
1 parent 5e708ca commit 77aa474

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
TruncatedQuery,
1010
OneLineQueryWithPopover,
1111
} from '../../../../components/TruncatedQuery/TruncatedQuery';
12+
import {parseUsToMs} from '../../../../utils/timeParsers';
1213
import {MAX_QUERY_HEIGHT} from '../../utils/constants';
1314

1415
import './TopQueries.scss';
@@ -90,7 +91,7 @@ const queryHashColumn: Column<KeyValueRow> = {
9091
const durationColumn: Column<KeyValueRow> = {
9192
name: TOP_QUERIES_COLUMNS_IDS.Duration,
9293
header: 'Duration, ms',
93-
render: ({row}) => formatNumber(row.Duration),
94+
render: ({row}) => formatNumber(parseUsToMs(row.Duration ?? undefined)),
9495
sortAccessor: (row) => Number(row.Duration),
9596
align: DataTable.RIGHT,
9697
};

0 commit comments

Comments
 (0)