Don't use 100% CPU in quiet mode

This commit is contained in:
Erik Eriksson 2018-08-16 11:35:05 +02:00
parent 7aea0ecae4
commit 3f42e6e027

View File

@ -20,6 +20,7 @@
"""Manage the Glances standalone session."""
import sys
import time
from glances.globals import WINDOWS
from glances.logger import logger
@ -128,6 +129,7 @@ class GlancesStandalone(object):
else:
# Nothing is displayed
# Break should be done via a signal (CTRL-C)
time.sleep(self.refresh_time - counter.get())
ret = True
return ret