Skip to content

Commit 6bb29f7

Browse files
authored
Merge pull request DIRACGrid#6695 from DIRACGridBot/cherry-pick-2-89a1aabb5-integration
[sweep:integration] fix accounting JobsPerPilot plot
2 parents 2c198c7 + a670467 commit 6bb29f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)