mirror of https://github.com/nicolargo/glances.git
Change the default path for graph export to /tmp/glances
This commit is contained in:
parent
6bfccdf87f
commit
d0629ea128
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue