Skip to content

Commit fdf351e

Browse files
committed
fix: update duration property to duration.total
1 parent 5529c8b commit fdf351e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

log-viewer/modules/components/AnalysisView.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ async function renderAnalysis(rootMethod: ApexLog) {
209209
formatterParams: {
210210
thousand: false,
211211
precision: 3,
212-
totalValue: rootMethod.duration,
212+
totalValue: rootMethod.duration.total,
213213
},
214214
accessorDownload: NumberAccessor,
215215
bottomCalcFormatter: progressFormatter,
216216
bottomCalc: 'sum',
217-
bottomCalcFormatterParams: { precision: 3, totalValue: rootMethod.duration },
217+
bottomCalcFormatterParams: { precision: 3, totalValue: rootMethod.duration.total },
218218
},
219219
{
220220
title: 'Self Time (ms)',
@@ -224,12 +224,12 @@ async function renderAnalysis(rootMethod: ApexLog) {
224224
hozAlign: 'right',
225225
headerHozAlign: 'right',
226226
bottomCalc: 'sum',
227-
bottomCalcFormatterParams: { precision: 3, totalValue: rootMethod.duration },
227+
bottomCalcFormatterParams: { precision: 3, totalValue: rootMethod.duration.total },
228228
formatter: progressFormatter,
229229
formatterParams: {
230230
thousand: false,
231231
precision: 3,
232-
totalValue: rootMethod.duration,
232+
totalValue: rootMethod.duration.total,
233233
},
234234
accessorDownload: NumberAccessor,
235235
bottomCalcFormatter: progressFormatter,

log-viewer/modules/components/calltree-view/CalltreeView.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,11 @@ export async function renderCallTree(
407407
formatterParams: {
408408
thousand: false,
409409
precision: 3,
410-
totalValue: rootMethod.duration,
410+
totalValue: rootMethod.duration.total,
411411
},
412412
bottomCalcFormatter: progressFormatter,
413413
bottomCalc: 'max',
414-
bottomCalcFormatterParams: { precision: 3, totalValue: rootMethod.duration },
414+
bottomCalcFormatterParams: { precision: 3, totalValue: rootMethod.duration.total },
415415
headerFilter: MinMaxEditor,
416416
headerFilterFunc: MinMaxFilter,
417417
headerFilterFuncParams: { columnName: 'duration', filterCache: totalTimeFilterCache },
@@ -426,13 +426,13 @@ export async function renderCallTree(
426426
hozAlign: 'right',
427427
headerHozAlign: 'right',
428428
bottomCalc: 'sum',
429-
bottomCalcFormatterParams: { precision: 3, totalValue: rootMethod.duration },
429+
bottomCalcFormatterParams: { precision: 3, totalValue: rootMethod.duration.total },
430430
bottomCalcFormatter: progressFormatter,
431431
formatter: progressFormatter,
432432
formatterParams: {
433433
thousand: false,
434434
precision: 3,
435-
totalValue: rootMethod.duration,
435+
totalValue: rootMethod.duration.total,
436436
},
437437
headerFilter: MinMaxEditor,
438438
headerFilterFunc: MinMaxFilter,

0 commit comments

Comments
 (0)