Skip to content

Commit e451d3e

Browse files
committed
be reasonable
1 parent e4c5282 commit e451d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: common/vrnetlab.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def getMem(vmMode: str, ram: int) -> int:
750750
if vmMode == "lc":
751751
if "LC_MEMORY" in os.environ:
752752
return 1024 * get_digits(os.getenv("LC_MEMORY"))
753-
return 1024 * ram
753+
return 1024 * int(ram)
754754

755755

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

0 commit comments

Comments
 (0)