%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/fenix-renderers.tld" prefix="fr"%>
<%@page import="net.sourceforge.fenixedu.domain.jobs.JobExecutionFileOutput"%>
<%@page import="com.qubit.fenixframework.plugins.job.JobExecutionContext"%>
<%@page import="com.qubit.fenixframework.plugins.job.Job"%>
<%!String calculateSize(Job job) {
float size = 0;
for (JobExecutionContext context : job.getContextSet()) {
if (context.isResultAvailable()) {
if (context.getResult() instanceof JobExecutionFileOutput) {
size += ((JobExecutionFileOutput)context.getResult()).getFileOutput().getSize();
}
}
}
return Math.round((size / 1024 / 1024) * 100.0) / 100.0 + " Mb";
}%>
|
|
<%=calculateSize((Job) job)%>
" href="#">[ ? ]
|
,
,
|
" style="display: none;">
" />
" />
|
|
:
" />
" />
|