Skip to content

Commit

Permalink
fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
pminervini committed Dec 18, 2023
1 parent 5e86bfe commit e30a3c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubejobs/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ def __init__(
self.cpu_request = (
cpu_request
if cpu_request
else MAX_CPU // (MAX_GPU - gpu_limit + 1)
else MAX_CPU // (MAX_GPU - (1 if gpu_limit is None else gpu_limit) + 1)
)
self.ram_request = (
ram_request
if ram_request
else f"{MAX_RAM // (MAX_GPU - gpu_limit + 1)}G"
else f"{MAX_RAM // (MAX_GPU - (1 if gpu_limit is None else gpu_limit) + 1)}G"
)
self.storage_request = storage_request
self.gpu_type = gpu_type
Expand Down

0 comments on commit e30a3c7

Please sign in to comment.