Commit bbf1a4e8 authored by Maiterth, Matthias's avatar Maiterth, Matthias
Browse files

If no jobs completed, set defaults to -1

parent bce245e7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -288,6 +288,11 @@ class Engine:
            average_wait_time = aggregate_wait_time / len(self.job_history_dict)
            average_turnaround_time = aggregate_turnaround_time / len(self.job_history_dict)
        else:
            # Set these to -1 to indicate nothing ran
            min_wait_time = -1
            max_wait_time = -1
            min_turnaround_time = -1
            max_turnaround_time = -1
            average_wait_time = -1
            average_turnaround_time = -1
        job_stats = {