Add period in graph titles.

Change-Id: I876d7812552421d469a5bbebc129585ae2842ac4
This commit is contained in:
François Rossigneux 2013-02-04 23:05:39 +01:00
parent 857882e4f5
commit 28321a3c54
1 changed files with 3 additions and 2 deletions

View File

@ -151,10 +151,11 @@ def build_graph(scale, probe=None):
# Build required (PNG file not found or outdated)
if not os.path.exists(png_file) or os.path.getmtime(png_file) < \
time.time() - scales[scale][0]['resolution']:
scale_label = ' (' + scales[scale][0]['label'] + ')'
if probe is not None:
# Specific arguments for probe graph
args = [png_file,
'--title', probe,
'--title', probe + scale_label,
'--width', '497',
'--height', '187',
'--upper-limit', str(cfg.CONF.max_watts),
@ -162,7 +163,7 @@ def build_graph(scale, probe=None):
else:
# Specific arguments for summary graph
args = [png_file,
'--title', 'Summary',
'--title', 'Summary' + scale_label,
'--width', '694',
'--height', '261',
]