diff --git a/glances/outputs/glances_restful_api.py b/glances/outputs/glances_restful_api.py index c60a6317..2f6df017 100644 --- a/glances/outputs/glances_restful_api.py +++ b/glances/outputs/glances_restful_api.py @@ -186,7 +186,7 @@ class GlancesRestfulApi: def __update_stats(self, plugins_list_to_update=None): # Never update more than 1 time per cached_time - if self.timer.finished(): + if self.timer.finished() or plugins_list_to_update: self.stats.update(plugins_list_to_update=plugins_list_to_update) self.timer = Timer(self.args.cached_time)