Skip to content

Commit 302c51c

Browse files
aldbrsimon-mazenoux
authored andcommitted
sweep: DIRACGrid#6694 fix accounting JobsPerPilot plot
1 parent 6e70c6c commit 302c51c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/DIRAC/AccountingSystem/private/Plotters/PilotPlotter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ def _plotJobsPerPilot(self, reportRequest, plotInfo, filename):
186186
"endtime": reportRequest["endTime"],
187187
"span": plotInfo["granularity"],
188188
"ylabel": "jobs/pilot",
189-
"normalization": max(x for y in plotInfo["data"].values() for x in y.values()),
190189
}
190+
if plotInfo["data"]:
191+
metadata["normalization"] = max(x for y in plotInfo["data"].values() for x in y.values())
191192
return self._generateQualityPlot(filename, plotInfo["data"], metadata)
192193

193194
def _reportTotalNumberOfPilots(self, reportRequest):

0 commit comments

Comments
 (0)