Skip to content

Commit 5758e2f

Browse files
committed
fix(NodeDetailDialog): adjust time cost metrics handling to ensure values are properly formatted as arrays and converted to milliseconds
1 parent 2b1ee79 commit 5758e2f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/dag/src/components/monitor/components/NodeDetailDialog.vue‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export default {
211211
const result = {
212212
x: time,
213213
name: [i18n.t('packages_dag_components_nodedetaildialog_chulihaoshi')],
214-
value: timeCostAvg,
214+
value: [timeCostAvg],
215215
}
216216
if (isSource) {
217217
result.name = [
@@ -231,6 +231,9 @@ export default {
231231
]
232232
result.value = [timeCostAvg, targetWriteTimeCostAvg]
233233
}
234+
235+
result.value = result.value.map((t) => t.map((t) => t * 1000))
236+
234237
return result
235238
},
236239

0 commit comments

Comments
 (0)