mirror of https://github.com/nicolargo/glances.git
Sensors plugin refresh by default every 10 seconds
This commit is contained in:
parent
c8ed977c9d
commit
067eb918ad
|
|
@ -403,8 +403,8 @@ port=7634
|
|||
# Documentation: https://glances.readthedocs.io/en/latest/aoa/sensors.html
|
||||
disable=False
|
||||
# Set the refresh multiplicator for the sensors
|
||||
# By default refresh every Glances refresh * 3 (increase to reduce CPU consumption)
|
||||
#refresh=3
|
||||
# By default refresh every Glances refresh * 5 (increase to reduce CPU consumption)
|
||||
#refresh=5
|
||||
# Hide some sensors (comma separated list of regexp)
|
||||
hide=unknown.*
|
||||
# Show only the following sensors (comma separated list of regexp)
|
||||
|
|
|
|||
|
|
@ -403,8 +403,8 @@ port=7634
|
|||
# Documentation: https://glances.readthedocs.io/en/latest/aoa/sensors.html
|
||||
disable=False
|
||||
# Set the refresh multiplicator for the sensors
|
||||
# By default refresh every Glances refresh * 3 (increase to reduce CPU consumption)
|
||||
#refresh=3
|
||||
# By default refresh every Glances refresh * 5 (increase to reduce CPU consumption)
|
||||
#refresh=5
|
||||
# Hide some sensors (comma separated list of regexp)
|
||||
hide=unknown.*
|
||||
# Show only the following sensors (comma separated list of regexp)
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 203 KiB |
|
|
@ -1157,6 +1157,11 @@ class _GlancesCurses:
|
|||
while not countdown.finished() and not isexitkey:
|
||||
# Getkey
|
||||
pressedkey = self.__catch_key(return_to_browser=return_to_browser)
|
||||
|
||||
if pressedkey == -1:
|
||||
self.wait()
|
||||
continue
|
||||
|
||||
isexitkey = pressedkey == ord('\x1b') or pressedkey == ord('q')
|
||||
|
||||
if pressedkey == curses.KEY_F5 or self.pressedkey == 18:
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@ sensors_definition = {
|
|||
}
|
||||
|
||||
# Define the default refresh multiplicator
|
||||
# Default value is 3 * Glances refresh time
|
||||
# Default value is 5 * Glances refresh time
|
||||
# Can be overwritten by the refresh option in the sensors section of the glances.conf file
|
||||
DEFAULT_REFRESH = 3
|
||||
DEFAULT_REFRESH = 5
|
||||
|
||||
# Fields description
|
||||
# description: human readable description
|
||||
|
|
|
|||
Loading…
Reference in New Issue