diff options
author | nicolargo <nicolas@nicolargo.com> | 2023-05-15 10:01:11 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2023-05-15 10:01:11 +0200 |
commit | f496a1ce18f39141f033ef9f09409cbd442174ce (patch) | |
tree | 249766aae6fa6452a3f80b29293500beb27bd09b | |
parent | 3b997bcabb61751a858ded9d1cff35969bd1f31d (diff) |
Improve global option management
-rw-r--r-- | glances/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glances/main.py b/glances/main.py index 47574001..7e1bbb1b 100644 --- a/glances/main.py +++ b/glances/main.py @@ -556,6 +556,9 @@ Examples of use: # Plugins refresh rate if self.config.has_section('global'): global_refresh = self.config.get_float_value('global', 'refresh', default=self.DEFAULT_REFRESH_TIME) + else: + global_refresh = self.DEFAULT_REFRESH_TIME + # The configuration key can be overwrite from the command line if args.time == self.DEFAULT_REFRESH_TIME: args.time = global_refresh logger.debug('Global refresh rate is set to {} seconds'.format(args.time)) |