Skip to content

Commit

Permalink
be reasonable
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Apr 18, 2023
1 parent e4c5282 commit e451d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/vrnetlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def getMem(vmMode: str, ram: int) -> int:
if vmMode == "lc":
if "LC_MEMORY" in os.environ:
return 1024 * get_digits(os.getenv("LC_MEMORY"))
return 1024 * ram
return 1024 * int(ram)


# getCpu returns the number of cpu cores for a given VM mode.
Expand Down

0 comments on commit e451d3e

Please sign in to comment.