Skip to content

Commit 14b7122

Browse files
committed
Merge pull request nuxeo#119 from sjbrown/minor-fixes
Minor fixes
2 parents d8caa1c + 6c38b0d commit 14b7122

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

src/funkload/ReportRenderHtmlGnuPlot.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ def createRPSTimeChart(self):
385385
"FF0000",
386386
"FF8C00",
387387
];
388-
i = 0
389-
last_cycle = self.cycles[-1]
390-
for cycle in self.cycles:
388+
for i, cycle in enumerate(self.cycles):
389+
if i != 0:
390+
plot_line += ', \\\n'
391391
dpath = gnuplot_scriptpath(self.report_dir,
392392
'time_rps-{0}.data'.format(cycle))
393393
#lines.append('set size 1,1\n')
@@ -402,9 +402,6 @@ def createRPSTimeChart(self):
402402
plot_line += ' w linespoints lw 1 lt 2 lc ' + \
403403
'rgbcolor "#{0}" t "{1} CUs"'.format(colors[i % len(colors)],
404404
stats[cycle]['response'].cvus)
405-
if cycle != last_cycle:
406-
plot_line += ', \\\n'
407-
i += 1
408405
lines.append(plot_line)
409406
#lines.append('unset multiplot\n')
410407
lines = self.fixXLabels('\n'.join(lines) + '\n')

src/funkload/ReportRenderOrg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def org_footer(self):
7777

7878

7979
class RenderOrg(RenderRst):
80-
"""Render stats in ReST format."""
80+
"""Render stats in emacs org-mode format."""
8181
# number of slowest requests to display
8282
slowest_items = 5
8383
with_chart = True

0 commit comments

Comments
 (0)