Browse Source

show seconds

AE86 5 years ago
parent
commit
97332d67a8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dbsyncer-web/src/main/resources/templates/index/index.html

+ 2 - 1
dbsyncer-web/src/main/resources/templates/index/index.html

@@ -158,8 +158,9 @@
                     <td th:text="${m?.mappingName}"></td>
                     <td th:text="${m?.model}"></td>
                     <td>
-                        <span th:if="${m?.model eq '全量' and m?.total gt 0}">
+                        <span th:if="${m?.model eq '全量' and m?.total gt 0 and (m?.success + m?.fail) gt 0}">
                             进度:[[${#numbers.formatDecimal(((m?.success + m?.fail) / m?.total * 100.00),0 ,2)}]]%,
+                            耗时:[[${(m?.endTime - m?.beginTime) / 1000}]]秒,
                             总数:[[${m?.total}]],
                         </span>
                         成功:[[${m?.success}]]