File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ' )
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def org_footer(self):
7777
7878
7979class 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
You can’t perform that action at this time.
0 commit comments