Skip to content

Commit

Permalink
Change the default path for graph export to /tmp/glances
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Nov 6, 2024
1 parent 6bfccdf commit d0629ea
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf/glances.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/glances.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion glances/exports/glances_graph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, config=None, args=None):
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)
Expand Down
1 change: 0 additions & 1 deletion glances/plugins/connections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def msg_curse(self, args=None, max_width=None):
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"))
Expand Down

0 comments on commit d0629ea

Please sign in to comment.