Add comments and make Time execution report more granular
[proteocache.git] / website / ReportLength.jsp
index c7f9cff..cd4249d 100644 (file)
@@ -12,6 +12,7 @@
 <h3>Time execution for the interval: ${data1}  -  ${data2}</h3> 
 </c:otherwise>
 </c:choose>
+<h3>Time execution: ${timeExecution} ms</h3>
 <table border="1" style = "border-collapse: collapse; white-space: nowrap"> 
 <thead>
 <tr>
 <th style="text-align: centre;  width: 150px">less then 30 s</th>
 <th style="text-align: centre;  width: 150px">30 s - 60 s</th>
 <th style="text-align: centre;  width: 150px">1 min - 2 min</th>
-<th style="text-align: centre;  width: 150px">more then 2min</th>
+<th style="text-align: centre;  width: 150px">2 min - 10 min</th>
+<th style="text-align: centre;  width: 150px">more then 10 min</th>
 </tr>
 </thead>
 <tbody>
-<c:forEach items="${result}" var="res">
-<tr>
-<td>${res.date}</td>
-<c:forEach items="${res.timeRez}" var="time">
-<td style="text-align: right">${time}</td>
-</c:forEach>
+<c:forEach items="${result}" var="res" varStatus="loop">
+       <c:choose>
+               <c:when test="${not loop.last}">
+                       <tr>
+                       <td>${res.date}</td>
+                       <c:forEach items="${res.timeRez}" var="time">
+                               <td style="text-align: right">${time}</td>
+                       </c:forEach>
+               </c:when>
+               <c:otherwise>
+                       <tr style="font-weight: bolder;">
+                       <td>Total:</td>
+                       <c:forEach items="${res.timeTotalExec}" var="total">
+                               <td style="text-align: right">${total}</td>
+                       </c:forEach>
+               </c:otherwise>
+       </c:choose>
 </c:forEach>
 </tbody>
 </table>