Changeset 3880
- Timestamp:
- Oct 26, 2007, 11:08:50 AM (15 years ago)
- Location:
- trunk/www/views/jobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/views/jobs/list_jobs.jsp
r3679 r3880 86 86 final boolean createPermission = sc.hasPermission(Permission.CREATE, itemType); 87 87 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 88 88 final Date now = new Date(); 89 89 final ModeInfo mode = ModeInfo.get(request.getParameter("mode")); 90 90 final String callback = request.getParameter("callback"); … … 323 323 exportable="true" 324 324 formatter="<%=dateTimeFormatter%>" 325 /> 326 <tbl:columndef 327 id="runningTime" 328 title="Running time" 325 329 /> 326 330 <tbl:columndef … … 566 570 <tbl:cell column="started" value="<%=item.getStarted()%>" /> 567 571 <tbl:cell column="ended" value="<%=item.getEnded()%>" /> 572 <tbl:cell column="runningTime"> 573 <% 574 Date started = item.getStarted(); 575 if (started != null) 576 { 577 Date ended = item.getEnded(); 578 if (ended == null) ended = now; 579 long runningTime = ended.getTime() - started.getTime(); 580 %> 581 <%=Values.formatTime(runningTime / 1000)%> 582 <% 583 } 584 %> 585 </tbl:cell> 568 586 <tbl:cell column="description"><%=HTML.encodeTags(item.getDescription())%></tbl:cell> 569 587 <tbl:cell column="pluginType"> -
trunk/www/views/jobs/view_job.jsp
r3679 r3880 219 219 </tr> 220 220 <tr valign="top"> 221 <td class="prompt">Running time</td> 222 <td> 223 <% 224 Date started = job.getStarted(); 225 if (started != null) 226 { 227 Date ended = job.getEnded(); 228 if (ended == null) ended = new Date(); 229 long runningTime = ended.getTime() - started.getTime(); 230 %> 231 <%=Values.formatTime(runningTime / 1000)%> 232 <% 233 } 234 %> 235 </td> 236 </tr> 237 <tr valign="top"> 221 238 <td class="prompt">Server</td> 222 239 <td>
Note: See TracChangeset
for help on using the changeset viewer.