Change the default path for graph export to /tmp/glances

This commit is contained in:
nicolargo 2024-11-06 15:42:40 +01:00
parent 6bfccdf87f
commit d0629ea128
4 changed files with 3 additions and 4 deletions

View File

@ -573,7 +573,7 @@ disable=False
# Configuration for the --export graph option
# Set the path where the graph (.svg files) will be created
# Can be overwrite by the --graph-path command line option
path=/tmp
path=/tmp/glances
# It is possible to generate the graphs automatically by setting the
# generate_every to a non zero value corresponding to the seconds between
# two generation. Set it to 0 to disable graph auto generation.

View File

@ -562,7 +562,7 @@ disable=False
# Configuration for the --export graph option
# Set the path where the graph (.svg files) will be created
# Can be overwrite by the --graph-path command line option
path=/tmp
path=/tmp/glances
# It is possible to generate the graphs automatically by setting the
# generate_every to a non zero value corresponding to the seconds between
# two generation. Set it to 0 to disable graph auto generation.

View File

@ -33,7 +33,7 @@ class Export(GlancesExport):
self.export_enable = self.load_conf('graph', options=['path', 'generate_every', 'width', 'height', 'style'])
# Manage options (command line arguments overwrite configuration file)
self.path = args.export_graph_path or self.path
self.path = self.path or args.export_graph_path
self.generate_every = int(getattr(self, 'generate_every', 0) or 0)
self.width = int(getattr(self, 'width', 800) or 800)
self.height = int(getattr(self, 'height', 600) or 600)

View File

@ -190,7 +190,6 @@ class PluginModel(GlancesPluginModel):
return ret
# Header
logger.info(self.stats)
if self.stats['net_connections_enabled'] or self.stats['nf_conntrack_enabled']:
msg = '{}'.format('TCP CONNECTIONS')
ret.append(self.curse_add_line(msg, "TITLE"))