Use black with -l 120 param.

This commit is contained in:
grossmj committed 2021-04-13 18:46:50 +09:30
1 parent f928738bd5
commit c021e21309
194 files changed
+6034 -4564

No files matched your search

+2 -3
View File
@@ -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)