Skip to content

Commit fbe6755

Browse files
author
石源
committed
首页添加平均时长统计
1 parent 29ed712 commit fbe6755

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/webapp/modules/home.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@
7272
{title: "失败数", data: "errorCount", name: "errorCount"},
7373
{title: "最小时长", data: "minDuration", name: "minDuration"},
7474
{title: "最大时长", data: "maxDuration", name: "maxDuration"},
75-
{title: "总时长", data: "totalDuration", name: "totalDuration"}
75+
{title: "总时长", data: "totalDuration", name: "totalDuration"},
76+
{
77+
title: "平均时长",
78+
render: function (data, type, row, meta) {
79+
return Math.round(row.totalDuration / (row.successCount + row.errorCount));
80+
}
81+
}
7682
],
7783

7884
autoWidth: false,

0 commit comments

Comments
 (0)