From 350ed125d367652487f639381e4dfdc4829dfe2e Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 5 Oct 2025 17:08:27 +0200 Subject: [PATCH] Store nothing is history is not enable. --- glances/__init__.py | 3 ++- glances/plugins/plugin/model.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/glances/__init__.py b/glances/__init__.py index 5b9b2db6..8ff49575 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -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 ' __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()) diff --git a/glances/plugins/plugin/model.py b/glances/plugins/plugin/model.py index 1aa81183..ccf8e014 100644 --- a/glances/plugins/plugin/model.py +++ b/glances/plugins/plugin/model.py @@ -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()):