private EnumMap<JobType, Long> totalTimesForJobs(){
		EnumMap<JobType, Long> out = new EnumMap<JobType, Long>(JobType.class);
		out.put(JobType.COMBINE, 0l);
		out.put(JobType.COMPRESS, 0l);
		out.put(JobType.DOWNLOAD, 0l);
		out.put(JobType.FORWARD, 0l);
		out.put(JobType.UNKNOWN, 0l);
		out.put(JobType.WAITING, 0l);
		out.put(JobType.WAITRESULT, 0l);
		for (JobMetaData job : finishedJobs.values()) {
			EnumMap<JobType,Long> jobTimes = job.getJobTimes();
			List<Long> values = new ArrayList<Long>();
			values.addAll(jobTimes.values());
	        Collections.sort(values);
			for (Entry<JobType, Long> entry : jobTimes.entrySet()){
				int ourTimeIndex = Collections.binarySearch(values, entry.getValue());
				long time = ourTimeIndex == values.size()-1 ? job.getEndtime() - entry.getValue() :
					values.get(ourTimeIndex+1) - entry.getValue();
				out.put(entry.getKey(), out.get(entry.getKey()) + time);
			}
		}
		return out;
	}