fix for session stats parsing
This commit is contained in:
parent
6ecf04137f
commit
3857d4b984
|
@ -31,13 +31,16 @@ def gen_report(name, lines):
|
||||||
print >>out, "set key box"
|
print >>out, "set key box"
|
||||||
print >>out, 'plot',
|
print >>out, 'plot',
|
||||||
column = 2
|
column = 2
|
||||||
|
first = True
|
||||||
for k in keys:
|
for k in keys:
|
||||||
if k not in lines:
|
if k not in lines:
|
||||||
column = column + 1
|
column = column + 1
|
||||||
continue
|
continue
|
||||||
print >>out, ' "%s" using 1:%d title "%s" axes %s with steps,' % (sys.argv[1], column, k, axes[column-2]),
|
if not first: print >>out, ', ',
|
||||||
|
print >>out, ' "%s" using 1:%d title "%s" axes %s with steps' % (sys.argv[1], column, k, axes[column-2]),
|
||||||
|
first = False
|
||||||
column = column + 1
|
column = column + 1
|
||||||
print >>out, 'x=0'
|
print >>out, ''
|
||||||
out.close()
|
out.close()
|
||||||
os.system('gnuplot session_stats_%s.gnuplot' % name);
|
os.system('gnuplot session_stats_%s.gnuplot' % name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue