fixed Execution Time Statistics report
[proteocache.git] / webapp / view / reports / TimeExecution.jsp
index face3d7..dbf654c 100644 (file)
@@ -10,6 +10,7 @@
 <body>
        <div class="container">
                <jsp:include page="../fragments/mainmenu.jsp" />
+               <spring:url value="/stat/jobsoneday/executionTime" var="oneday_query" />
                <spring:url value="/stat/exectime/results?date1=${date1}&date2=${date2}&option=${option}" var="the_query" />
 
        <!-- reload and CSV buttons -->
                                                                <td style="text-align: center">${res.key}</td>
                                                                <c:set var="value" value="${res.value}"/>
                                                                <td style="text-align: right">${value.total}</td>
-                                                               <td style="text-align: right">${value.total0_30s}</td>
-                                                               <td style="text-align: right">${value.total30_60s}</td>
-                                                               <td style="text-align: right">${value.total1_2m}</td>
-                                                               <td style="text-align: right">${value.total2_10m}</td>
-                                                               <td style="text-align: right">${value.total10m}</td>
+                                                               <td style="text-align: right">
+                                                                       <c:choose>
+                                                                               <c:when test="${value.total0_30s == 0}">0</c:when>
+                                                                               <c:otherwise><a href="${oneday_query}?date=${res.key}&interval=ZERO_THIRTY_SEC">${value.total0_30s}</a></c:otherwise>
+                                                                       </c:choose>
+                                                               </td>
+                                                               <td style="text-align: right">
+                                                                       <c:choose>
+                                                                               <c:when test="${value.total0_30s == 0}">0</c:when>
+                                                                               <c:otherwise><a href="${oneday_query}?date=${res.key}&interval=THIRTY_SIXTY_SEC">${value.total30_60s}</a></c:otherwise>
+                                                                       </c:choose>
+                                                               </td>
+                                                               <td style="text-align: right">
+                                                                       <c:choose>
+                                                                               <c:when test="${value.total0_30s == 0}">0</c:when>
+                                                                               <c:otherwise><a href="${oneday_query}?date=${res.key}&interval=ONE_TWO_MIN">${value.total1_2m}</a></c:otherwise>
+                                                                       </c:choose>
+                                                               </td>
+                                                               <td style="text-align: right">
+                                                                       <c:choose>
+                                                                               <c:when test="${value.total0_30s == 0}">0</c:when>
+                                                                               <c:otherwise><a href="${oneday_query}?date=${res.key}&interval=TWO_TEN_MIN">${value.total2_10m}</a></c:otherwise>
+                                                                       </c:choose>
+                                                               </td>
+                                                               <td style="text-align: right">
+                                                                       <c:choose>
+                                                                               <c:when test="${value.total0_30s == 0}">0</c:when>
+                                                                               <c:otherwise><a href="${oneday_query}?date=${res.key}&interval=MORE_THEN_TEN_MIN">${value.total10m}</a></c:otherwise>
+                                                                       </c:choose>
+                                                               </td>
                                                        </tr>
                                                </c:forEach>
                        </tbody>