From 9cb137de5714c050011866352b07059e680b8425 Mon Sep 17 00:00:00 2001 From: Larissa Batista Leite Date: Mon, 23 Oct 2017 17:01:54 +0200 Subject: [PATCH] Changed the calculation in stats file to use the total processors property defined in job, fixes #280 --- autosubmit/experiment/statistics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autosubmit/experiment/statistics.py b/autosubmit/experiment/statistics.py index 72bd5a4ff..cd988b644 100644 --- a/autosubmit/experiment/statistics.py +++ b/autosubmit/experiment/statistics.py @@ -99,8 +99,8 @@ class ExperimentStats(object): def _calculate_stats(self): for i, job in enumerate(self._jobs_list): - processors = job.processors last_retrials = job.get_last_retrials() + processors = job.total_processors for retrial in last_retrials: if Job.is_a_completed_retrial(retrial): self._queued[i] += retrial[1] - retrial[0] @@ -120,7 +120,7 @@ class ExperimentStats(object): self._total_jobs_run += len(last_retrials) self._total_jobs_failed += self.failed_jobs[i] self._threshold = max(self._threshold, job.total_wallclock) - self._expected_cpu_consumption += job.total_wallclock * int(job.total_processors) + self._expected_cpu_consumption += job.total_wallclock * int(processors) self._expected_real_consumption += job.total_wallclock self._total_queueing_time += self._queued[i] -- GitLab