Store nothing is history is not enable.

This commit is contained in:
nicolargo 2025-10-05 17:08:27 +02:00
parent 7382089129
commit 350ed125d3
2 changed files with 5 additions and 1 deletions

View File

@ -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())

View File

@ -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()):