Make sure to drain notification feed

Ref https://github.com/GNS3/gns3-gui/issues/1447
This commit is contained in:
Julien Duponchelle
2016-08-31 11:02:04 +02:00
parent 238421c415
commit 45471fc865
2 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class NotificationQueue(asyncio.Queue):
Return the content of the ping notification
"""
msg = {}
# Non blocking call in order to get cpu usage. First call will return 0
# Non blocking call in order to get cpu usage. First call will return 0
msg["cpu_usage_percent"] = psutil.cpu_percent(interval=None)
msg["memory_usage_percent"] = psutil.virtual_memory().percent
return msg