We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38ed9b9 commit c7c710dCopy full SHA for c7c710d
2 files changed
src/DIRAC/WorkloadManagementSystem/Client/Matcher.py
@@ -196,7 +196,7 @@ def _processResourceDescription(self, resourceDescription):
196
maxRAM = resourceDescription.get("MaxRAM")
197
if maxRAM:
198
try:
199
- maxRAM = int(maxRAM / 1000)
+ maxRAM = int(maxRAM)
200
except ValueError:
201
maxRAM = None
202
nProcessors = resourceDescription.get("NumberOfProcessors")
src/DIRAC/WorkloadManagementSystem/Executor/test/Test_Executor.py
@@ -55,8 +55,8 @@ def test__applySiteFilter(sites, banned, expected):
55
({"Tag": "bof"}, ["bof"]),
56
({"Tags": "bof, bif"}, ["bof", "bif"]),
57
({"MaxRAM": 2500}, ["2500MB"]),
58
- ({"Tags": "bof, bif", "MaxRAM": 2048}, ["bof", "bif", "2500MB"]),
59
- ({"WholeNode": "yes", "MaxRAM": 2048}, ["WholeNode", "MultiProcessor", "2500MB"]),
+ ({"Tags": "bof, bif", "MaxRAM": 2048}, ["bof", "bif", "2048MB"]),
+ ({"WholeNode": "yes", "MaxRAM": 2048}, ["WholeNode", "MultiProcessor", "2048MB"]),
60
({"NumberOfProcessors": 1}, []),
61
({"NumberOfProcessors": 4}, ["MultiProcessor", "4Processors"]),
62
({"NumberOfProcessors": 4, "MinNumberOfProcessors": 2}, ["MultiProcessor", "4Processors"]),
0 commit comments