mirror of https://github.com/nicolargo/glances.git
Store nothing is history is not enable.
This commit is contained in:
parent
7382089129
commit
350ed125d3
|
|
@ -19,7 +19,7 @@ import tracemalloc
|
|||
# Global name
|
||||
# Version should start and end with a numerical char
|
||||
# See https://packaging.python.org/specifications/core-metadata/#version
|
||||
__version__ = "4.4.0_dev5"
|
||||
__version__ = "4.4.0_dev6"
|
||||
__apiversion__ = '4'
|
||||
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
|
||||
__license__ = 'LGPLv3'
|
||||
|
|
@ -188,3 +188,4 @@ def main():
|
|||
|
||||
# Glances can be ran in standalone, client or server mode
|
||||
start(config=core.get_config(), args=core.get_args())
|
||||
start(config=core.get_config(), args=core.get_args())
|
||||
|
|
|
|||
|
|
@ -226,6 +226,9 @@ class GlancesPluginModel:
|
|||
|
||||
def update_stats_history(self):
|
||||
"""Update stats history."""
|
||||
# Exit if no history
|
||||
if not self.history_enable():
|
||||
return
|
||||
# Build the history
|
||||
_get_export = self.get_export()
|
||||
if not (_get_export and self.history_enable()):
|
||||
|
|
|
|||
Loading…
Reference in New Issue