mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Use black with -l 120 param.
This commit is contained in:
1 parent
f928738bd5
commit
c021e21309
194 files changed
+6034
-4564
No files matched your search
@@ -18,11 +18,11 @@
|
||||
import psutil
|
||||
|
||||
import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class BaseGNS3VM:
|
||||
|
||||
def __init__(self, controller):
|
||||
|
||||
self._controller = controller
|
||||
@@ -42,9 +42,9 @@ class BaseGNS3VM:
|
||||
# because this is likely to degrade performances.
|
||||
self._vcpus = psutil.cpu_count(logical=False)
|
||||
# we want to allocate half of the available physical memory
|
||||
#ram = int(psutil.virtual_memory().total / (1024 * 1024) / 2)
|
||||
# ram = int(psutil.virtual_memory().total / (1024 * 1024) / 2)
|
||||
# value must be a multiple of 4 (VMware requirement)
|
||||
#ram -= ram % 4
|
||||
# ram -= ram % 4
|
||||
|
||||
ram = 2048
|
||||
|
||||
|
||||
Reference in new issue
Block a user