mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 22:41:12 +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
@@ -23,6 +23,7 @@ from gns3server.utils.cpu_percent import CpuPercent
|
||||
from gns3server.utils.path import get_default_project_directory
|
||||
|
||||
import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -55,9 +56,7 @@ class NotificationQueue(asyncio.Queue):
|
||||
"""
|
||||
Return the content of the ping notification
|
||||
"""
|
||||
msg = {"cpu_usage_percent": 0,
|
||||
"memory_usage_percent": 0,
|
||||
"disk_usage_percent": 0}
|
||||
msg = {"cpu_usage_percent": 0, "memory_usage_percent": 0, "disk_usage_percent": 0}
|
||||
# Non blocking call in order to get cpu usage. First call will return 0
|
||||
try:
|
||||
msg["cpu_usage_percent"] = CpuPercent.get(interval=None)
|
||||
|
||||
Reference in new issue
Block a user