Skip to content

Commit b435d68

Browse files
authored
Fix a reference to an invalid property and return the correct value from the calculation. (#313)
1 parent 2810957 commit b435d68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyslurm/core/job/job.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,10 +1093,11 @@ cdef class Job:
10931093

10941094
mem_node = self.memory_per_node
10951095
if mem_node is not None:
1096-
num_nodes = self.min_nodes
1096+
num_nodes = self.num_nodes
10971097
if num_nodes is not None:
10981098
mem_node *= num_nodes
1099-
return mem_cpu
1099+
return mem_node
1100+
11001101

11011102
# TODO
11021103
# mem_gpu = self.memory_per_gpu

0 commit comments

Comments
 (0)